コード例 #1
0
 /// <summary>
 /// Create a new Ingredient object.
 /// </summary>
 /// <param name="ingredientID">Initial value of the IngredientID property.</param>
 public static Ingredient CreateIngredient(global::System.Int32 ingredientID)
 {
     Ingredient ingredient = new Ingredient();
     ingredient.IngredientID = ingredientID;
     return ingredient;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Ingredients EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIngredients(Ingredient ingredient)
 {
     base.AddObject("Ingredients", ingredient);
 }