Пример #1
0
 /// <summary>
 /// Create a new Categories object.
 /// </summary>
 /// <param name="categoryID">Initial value of the CategoryID property.</param>
 /// <param name="categoryName">Initial value of the CategoryName property.</param>
 public static Categories CreateCategories(global::System.Int32 categoryID, global::System.String categoryName)
 {
     Categories categories = new Categories();
     categories.CategoryID = categoryID;
     categories.CategoryName = categoryName;
     return categories;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCategories(Categories categories)
 {
     base.AddObject("Categories", categories);
 }