Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ShoppingLists EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToShoppingLists(ShoppingList shoppingList)
 {
     base.AddObject("ShoppingLists", shoppingList);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a new ShoppingList object.
 /// </summary>
 /// <param name="shoppingListId">Initial value of the ShoppingListId property.</param>
 /// <param name="itemId">Initial value of the ItemId property.</param>
 /// <param name="customerId">Initial value of the CustomerId property.</param>
 public static ShoppingList CreateShoppingList(global::System.Int32 shoppingListId, global::System.Int32 itemId, global::System.Int32 customerId)
 {
     ShoppingList shoppingList = new ShoppingList();
     shoppingList.ShoppingListId = shoppingListId;
     shoppingList.ItemId = itemId;
     shoppingList.CustomerId = customerId;
     return shoppingList;
 }