/// <summary> /// Deprecated Method for adding a new object to the Recipe EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToRecipe(Recipe recipe) { base.AddObject("Recipe", recipe); }
/// <summary> /// Create a new Recipe object. /// </summary> /// <param name="recID">Initial value of the RecID property.</param> /// <param name="recName">Initial value of the RecName property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="describe">Initial value of the Describe property.</param> public static Recipe CreateRecipe(global::System.Int64 recID, global::System.String recName, global::System.Decimal price, global::System.String describe) { Recipe recipe = new Recipe(); recipe.RecID = recID; recipe.RecName = recName; recipe.Price = price; recipe.Describe = describe; return recipe; }