コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Carts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCarts(Cart cart)
 {
     base.AddObject("Carts", cart);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Cart object.
 /// </summary>
 /// <param name="cartID">Initial value of the CartID property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="amount">Initial value of the Amount property.</param>
 public static Cart CreateCart(global::System.Int32 cartID, global::System.Int32 userID, global::System.Int32 productID, global::System.Int32 amount)
 {
     Cart cart = new Cart();
     cart.CartID = cartID;
     cart.UserID = userID;
     cart.ProductID = productID;
     cart.Amount = amount;
     return cart;
 }