Inheritance: System.Data.Objects.DataClasses.EntityObject
Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Commodities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCommodities(Commodity commodity)
 {
     base.AddObject("Commodities", commodity);
 }