/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the PantryItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPantryItems(PantryItem pantryItem) { base.AddObject("PantryItems", pantryItem); }