/// <summary> /// Deprecated Method for adding a new object to the MenuItemIngredients EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMenuItemIngredients(MenuItemIngredient menuItemIngredient) { base.AddObject("MenuItemIngredients", menuItemIngredient); }
/// <summary> /// Create a new MenuItemIngredient object. /// </summary> /// <param name="menuItemIngredientID">Initial value of the MenuItemIngredientID property.</param> /// <param name="menuItemID">Initial value of the MenuItemID property.</param> /// <param name="ingredientID">Initial value of the IngredientID property.</param> /// <param name="menuItemIngredientQty">Initial value of the MenuItemIngredientQty property.</param> public static MenuItemIngredient CreateMenuItemIngredient(global::System.Int16 menuItemIngredientID, global::System.Int16 menuItemID, global::System.Int16 ingredientID, global::System.Decimal menuItemIngredientQty) { MenuItemIngredient menuItemIngredient = new MenuItemIngredient(); menuItemIngredient.MenuItemIngredientID = menuItemIngredientID; menuItemIngredient.MenuItemID = menuItemID; menuItemIngredient.IngredientID = ingredientID; menuItemIngredient.MenuItemIngredientQty = menuItemIngredientQty; return menuItemIngredient; }