/// <summary> /// Create a new Cart object. /// </summary> /// <param name="cartGuid">Initial value of the CartGuid property.</param> /// <param name="storeGuid">Initial value of the StoreGuid property.</param> /// <param name="userGuid">Initial value of the UserGuid property.</param> /// <param name="subTotal">Initial value of the SubTotal property.</param> /// <param name="taxTotal">Initial value of the TaxTotal property.</param> /// <param name="shippingTotal">Initial value of the ShippingTotal property.</param> /// <param name="orderTotal">Initial value of the OrderTotal property.</param> /// <param name="created">Initial value of the Created property.</param> public static Cart CreateCart(global::System.Guid cartGuid, global::System.Guid storeGuid, global::System.Guid userGuid, global::System.Decimal subTotal, global::System.Decimal taxTotal, global::System.Decimal shippingTotal, global::System.Decimal orderTotal, global::System.DateTime created) { Cart cart = new Cart(); cart.CartGuid = cartGuid; cart.StoreGuid = storeGuid; cart.UserGuid = userGuid; cart.SubTotal = subTotal; cart.TaxTotal = taxTotal; cart.ShippingTotal = shippingTotal; cart.OrderTotal = orderTotal; cart.Created = created; return cart; }
/// <summary> /// Deprecated Method for adding a new object to the Carts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCarts(Cart cart) { base.AddObject("Carts", cart); }