/// <summary> /// Create a new Ingredient object. /// </summary> /// <param name="ingredientID">Initial value of the IngredientID property.</param> /// <param name="ingredient1">Initial value of the Ingredient1 property.</param> /// <param name="recipeID">Initial value of the RecipeID property.</param> public static Ingredient CreateIngredient(global::System.Int32 ingredientID, global::System.String ingredient1, global::System.Int32 recipeID) { Ingredient ingredient = new Ingredient(); ingredient.IngredientID = ingredientID; ingredient.Ingredient1 = ingredient1; ingredient.RecipeID = recipeID; return ingredient; }
/// <summary> /// Deprecated Method for adding a new object to the Ingredients EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToIngredients(Ingredient ingredient) { base.AddObject("Ingredients", ingredient); }