/// <summary> /// Deprecated Method for adding a new object to the Sales_by_Category EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSales_by_Category(Sales_by_Category sales_by_Category) { base.AddObject("Sales_by_Category", sales_by_Category); }
/// <summary> /// Create a new Sales_by_Category object. /// </summary> /// <param name="categoryID">Initial value of the CategoryID property.</param> /// <param name="categoryName">Initial value of the CategoryName property.</param> /// <param name="productName">Initial value of the ProductName property.</param> public static Sales_by_Category CreateSales_by_Category(global::System.Int32 categoryID, global::System.String categoryName, global::System.String productName) { Sales_by_Category sales_by_Category = new Sales_by_Category(); sales_by_Category.CategoryID = categoryID; sales_by_Category.CategoryName = categoryName; sales_by_Category.ProductName = productName; return sales_by_Category; }