/// <summary> /// Deprecated Method for adding a new object to the Products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProducts(Product product) { base.AddObject("Products", product); }
/// <summary> /// Create a new Product object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="unit">Initial value of the Unit property.</param> /// <param name="wholesalePrice">Initial value of the WholesalePrice property.</param> /// <param name="shallowWholesalePrice">Initial value of the ShallowWholesalePrice property.</param> /// <param name="retailPrice">Initial value of the RetailPrice property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="userID">Initial value of the UserID property.</param> public static Product CreateProduct(global::System.Int32 id, global::System.String name, global::System.String unit, global::System.Decimal wholesalePrice, global::System.Decimal shallowWholesalePrice, global::System.Decimal retailPrice, global::System.String code, global::System.Int32 userID) { Product product = new Product(); product.ID = id; product.Name = name; product.Unit = unit; product.WholesalePrice = wholesalePrice; product.ShallowWholesalePrice = shallowWholesalePrice; product.RetailPrice = retailPrice; product.Code = code; product.UserID = userID; return product; }