/// <summary> /// Create a new ProductCategory object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="productCategoryName">Initial value of the ProductCategoryName property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static ProductCategory CreateProductCategory(global::System.Int32 id, global::System.String productCategoryName, global::System.Boolean discontinued, global::System.Byte[] rowVersion) { ProductCategory productCategory = new ProductCategory(); productCategory.Id = id; productCategory.ProductCategoryName = productCategoryName; productCategory.Discontinued = discontinued; productCategory.RowVersion = rowVersion; return productCategory; }
/// <summary> /// Deprecated Method for adding a new object to the ProductCategories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductCategories(ProductCategory productCategory) { base.AddObject("ProductCategories", productCategory); }
/// <summary> /// Create a new ProductCategory object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="category">Initial value of the Category property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static ProductCategory CreateProductCategory(global::System.Int32 id, global::System.String category, global::System.Byte[] rowVersion) { ProductCategory productCategory = new ProductCategory(); productCategory.Id = id; productCategory.Category = category; productCategory.RowVersion = rowVersion; return productCategory; }