コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BlogCategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBlogCategories(BlogCategory blogCategory)
 {
     base.AddObject("BlogCategories", blogCategory);
 }
コード例 #2
0
 /// <summary>
 /// Create a new BlogCategory object.
 /// </summary>
 /// <param name="blogCategoryID">Initial value of the BlogCategoryID property.</param>
 /// <param name="blogCategoryName">Initial value of the BlogCategoryName property.</param>
 public static BlogCategory CreateBlogCategory(global::System.Int32 blogCategoryID, global::System.String blogCategoryName)
 {
     BlogCategory blogCategory = new BlogCategory();
     blogCategory.BlogCategoryID = blogCategoryID;
     blogCategory.BlogCategoryName = blogCategoryName;
     return blogCategory;
 }