Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Inventories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInventories(Inventory inventory)
 {
     base.AddObject("Inventories", inventory);
 }
Example #2
0
 /// <summary>
 /// Create a new Inventory object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="itemID">Initial value of the ItemID property.</param>
 /// <param name="reOrderLevel">Initial value of the ReOrderLevel property.</param>
 /// <param name="qtyOnHand">Initial value of the QtyOnHand property.</param>
 /// <param name="location">Initial value of the Location property.</param>
 /// <param name="lastUpdateDate">Initial value of the LastUpdateDate property.</param>
 public static Inventory CreateInventory(global::System.Int32 id, global::System.Int32 itemID, global::System.Int32 reOrderLevel, global::System.Int32 qtyOnHand, global::System.String location, global::System.DateTime lastUpdateDate)
 {
     Inventory inventory = new Inventory();
     inventory.ID = id;
     inventory.ItemID = itemID;
     inventory.ReOrderLevel = reOrderLevel;
     inventory.QtyOnHand = qtyOnHand;
     inventory.Location = location;
     inventory.LastUpdateDate = lastUpdateDate;
     return inventory;
 }