Ejemplo n.º 1
0
 /// <summary>
 /// Create a new PantryItem object.
 /// </summary>
 /// <param name="pantryItemId">Initial value of the PantryItemId property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 public static PantryItem CreatePantryItem(global::System.Int32 pantryItemId, global::System.String description)
 {
     PantryItem pantryItem = new PantryItem();
     pantryItem.PantryItemId = pantryItemId;
     pantryItem.Description = description;
     return pantryItem;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PantryItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPantryItems(PantryItem pantryItem)
 {
     base.AddObject("PantryItems", pantryItem);
 }