Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Recipes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRecipes(Recipe recipe)
 {
     base.AddObject("Recipes", recipe);
 }
Пример #2
0
 /// <summary>
 /// Create a new Recipe object.
 /// </summary>
 /// <param name="recipeId">Initial value of the RecipeId property.</param>
 public static Recipe CreateRecipe(global::System.Int32 recipeId)
 {
     Recipe recipe = new Recipe();
     recipe.RecipeId = recipeId;
     return recipe;
 }