예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductCategories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductCategories(ProductCategory productCategory)
 {
     base.AddObject("ProductCategories", productCategory);
 }
예제 #2
0
 /// <summary>
 /// Create a new ProductCategory object.
 /// </summary>
 /// <param name="category_id">Initial value of the category_id property.</param>
 /// <param name="category_name">Initial value of the category_name property.</param>
 public static ProductCategory CreateProductCategory(global::System.Int32 category_id, global::System.String category_name)
 {
     ProductCategory productCategory = new ProductCategory();
     productCategory.category_id = category_id;
     productCategory.category_name = category_name;
     return productCategory;
 }