/// <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="name">Initial value of the Name property.</param> /// <param name="departmentId">Initial value of the DepartmentId property.</param> public static ProductCategory CreateProductCategory(global::System.Int32 id, global::System.String name, global::System.Int32 departmentId) { ProductCategory productCategory = new ProductCategory(); productCategory.Id = id; productCategory.Name = name; productCategory.DepartmentId = departmentId; return productCategory; }