/// <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="productFK">Initial value of the ProductFK property.</param> /// <param name="userFK">Initial value of the UserFK property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> public static ShoppingCart CreateShoppingCart(global::System.Guid productFK, global::System.Guid userFK, global::System.Int32 quantity) { ShoppingCart shoppingCart = new ShoppingCart(); shoppingCart.ProductFK = productFK; shoppingCart.UserFK = userFK; shoppingCart.Quantity = quantity; return shoppingCart; }