/// <summary> /// Deprecated Method for adding a new object to the MenuItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMenuItems(MenuItem menuItem) { base.AddObject("MenuItems", menuItem); }
/// <summary> /// Create a new MenuItem object. /// </summary> /// <param name="menuItemID">Initial value of the MenuItemID property.</param> /// <param name="foodDrinkCategoryID">Initial value of the FoodDrinkCategoryID property.</param> /// <param name="menuItemName">Initial value of the MenuItemName property.</param> /// <param name="menuItemPrice">Initial value of the MenuItemPrice property.</param> public static MenuItem CreateMenuItem(global::System.Int16 menuItemID, global::System.Int16 foodDrinkCategoryID, global::System.String menuItemName, global::System.Decimal menuItemPrice) { MenuItem menuItem = new MenuItem(); menuItem.MenuItemID = menuItemID; menuItem.FoodDrinkCategoryID = foodDrinkCategoryID; menuItem.MenuItemName = menuItemName; menuItem.MenuItemPrice = menuItemPrice; return menuItem; }