コード例 #1
0
 /// <summary>
 /// Create a new Dishes object.
 /// </summary>
 /// <param name="dishID">Initial value of the DishID property.</param>
 /// <param name="dishName">Initial value of the DishName property.</param>
 /// <param name="discontinued">Initial value of the Discontinued property.</param>
 public static Dishes CreateDishes(global::System.Int32 dishID, global::System.String dishName, global::System.Boolean discontinued)
 {
     Dishes dishes = new Dishes();
     dishes.DishID = dishID;
     dishes.DishName = dishName;
     dishes.Discontinued = discontinued;
     return dishes;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Dishes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDishes(Dishes dishes)
 {
     base.AddObject("Dishes", dishes);
 }