/// <summary> /// Create a new NutritionElement object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="product_Id">Initial value of the Product_Id property.</param> /// <param name="ingredient_Id">Initial value of the Ingredient_Id property.</param> public static NutritionElement CreateNutritionElement(global::System.Int32 id, global::System.Int32 product_Id, global::System.Int32 ingredient_Id) { NutritionElement nutritionElement = new NutritionElement(); nutritionElement.Id = id; nutritionElement.Product_Id = product_Id; nutritionElement.Ingredient_Id = ingredient_Id; return nutritionElement; }
/// <summary> /// Deprecated Method for adding a new object to the NutritionElements EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToNutritionElements(NutritionElement nutritionElement) { base.AddObject("NutritionElements", nutritionElement); }