/// <summary> /// Deprecated Method for adding a new object to the Inventories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToInventories(Inventory inventory) { base.AddObject("Inventories", inventory); }
/// <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; }