/// <summary> /// Deprecated Method for adding a new object to the ShoppingCarts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShoppingCarts(ShoppingCart shoppingCart) { base.AddObject("ShoppingCarts", shoppingCart); }
/// <summary> /// Create a new ShoppingCart object. /// </summary> /// <param name="cart_id">Initial value of the cart_id property.</param> public static ShoppingCart CreateShoppingCart(global::System.Int32 cart_id) { ShoppingCart shoppingCart = new ShoppingCart(); shoppingCart.cart_id = cart_id; return shoppingCart; }