/// <summary> /// Create a new Cart object. /// </summary> /// <param name="cartId">Initial value of the CartId property.</param> /// <param name="siteId">Initial value of the SiteId property.</param> /// <param name="checkoutStep">Initial value of the CheckoutStep property.</param> /// <param name="dirty">Initial value of the Dirty property.</param> public static Cart CreateCart(global::System.Int32 cartId, global::System.Int32 siteId, global::System.Int32 checkoutStep, global::System.Boolean dirty) { Cart cart = new Cart(); cart.CartId = cartId; cart.SiteId = siteId; cart.CheckoutStep = checkoutStep; cart.Dirty = dirty; 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); }