/// <summary> /// Deprecated Method for adding a new object to the IngredientPurchases EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToIngredientPurchases(IngredientPurchase ingredientPurchase) { base.AddObject("IngredientPurchases", ingredientPurchase); }
/// <summary> /// Create a new IngredientPurchase object. /// </summary> /// <param name="purchaseID">Initial value of the PurchaseID property.</param> /// <param name="purchaseDate">Initial value of the PurchaseDate property.</param> public static IngredientPurchase CreateIngredientPurchase(global::System.Int16 purchaseID, global::System.DateTime purchaseDate) { IngredientPurchase ingredientPurchase = new IngredientPurchase(); ingredientPurchase.PurchaseID = purchaseID; ingredientPurchase.PurchaseDate = purchaseDate; return ingredientPurchase; }