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