示例#1
0
 /// <summary>
 /// Create a new PostCategory object.
 /// </summary>
 /// <param name="postCategoryId">Initial value of the PostCategoryId property.</param>
 public static PostCategory CreatePostCategory(global::System.Int32 postCategoryId)
 {
     PostCategory postCategory = new PostCategory();
     postCategory.PostCategoryId = postCategoryId;
     return postCategory;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PostCategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPostCategories(PostCategory postCategory)
 {
     base.AddObject("PostCategories", postCategory);
 }