Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Inventory object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="inventoryTypeID">Initial value of the InventoryTypeID property.</param>
 public static Inventory CreateInventory(global::System.Int32 id, global::System.String productName, global::System.String status, global::System.Int32 inventoryTypeID)
 {
     Inventory inventory = new Inventory();
     inventory.ID = id;
     inventory.ProductName = productName;
     inventory.Status = status;
     inventory.InventoryTypeID = inventoryTypeID;
     return inventory;
 }