コード例 #1
0
 /// <summary>
 /// Create a new IngredientList object.
 /// </summary>
 /// <param name="ingredientListId">Initial value of the IngredientListId property.</param>
 /// <param name="ingredientId">Initial value of the IngredientId property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 /// <param name="measurementId">Initial value of the MeasurementId property.</param>
 /// <param name="recipeId">Initial value of the RecipeId property.</param>
 public static IngredientList CreateIngredientList(global::System.Int32 ingredientListId, global::System.Int32 ingredientId, global::System.Int32 amount, global::System.Int32 measurementId, global::System.Int32 recipeId)
 {
     IngredientList ingredientList = new IngredientList();
     ingredientList.IngredientListId = ingredientListId;
     ingredientList.IngredientId = ingredientId;
     ingredientList.Amount = amount;
     ingredientList.MeasurementId = measurementId;
     ingredientList.RecipeId = recipeId;
     return ingredientList;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the IngredientLists EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIngredientLists(IngredientList ingredientList)
 {
     base.AddObject("IngredientLists", ingredientList);
 }