/// <summary> /// Create a new Commodity object. /// </summary> /// <param name="commodityID">Initial value of the CommodityID property.</param> /// <param name="commodityCode">Initial value of the CommodityCode property.</param> /// <param name="commodityName">Initial value of the CommodityName property.</param> /// <param name="locationID">Initial value of the LocationID property.</param> public static Commodity CreateCommodity(global::System.Int32 commodityID, global::System.String commodityCode, global::System.String commodityName, global::System.Int32 locationID) { Commodity commodity = new Commodity(); commodity.CommodityID = commodityID; commodity.CommodityCode = commodityCode; commodity.CommodityName = commodityName; commodity.LocationID = locationID; return commodity; }
/// <summary> /// Deprecated Method for adding a new object to the Commodities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCommodities(Commodity commodity) { base.AddObject("Commodities", commodity); }