Пример #1
0
        /// <summary>
        /// Create a new FoodMenu object.
        /// </summary>
        /// <param name="foodID">Initial value of the FoodID property.</param>
        /// <param name="foodName">Initial value of the FoodName property.</param>
        /// <param name="orderSize">Initial value of the OrderSize property.</param>
        public static FoodMenu CreateFoodMenu(global::System.Int32 foodID, global::System.String foodName, global::System.String orderSize)
        {
            FoodMenu foodMenu = new FoodMenu();

            foodMenu.FoodID    = foodID;
            foodMenu.FoodName  = foodName;
            foodMenu.OrderSize = orderSize;
            return(foodMenu);
        }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the FoodMenus EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFoodMenus(FoodMenu foodMenu)
 {
     base.AddObject("FoodMenus", foodMenu);
 }