/// <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="cartStatus">Initial value of the CartStatus property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="lastUpdatedOn">Initial value of the LastUpdatedOn property.</param> public static Cart CreateCart(global::System.Int32 cartId, global::System.Int32 userId, global::System.Int16 cartStatus, global::System.DateTime createdOn, global::System.DateTime lastUpdatedOn) { Cart cart = new Cart(); cart.CartId = cartId; cart.UserId = userId; cart.CartStatus = cartStatus; cart.CreatedOn = createdOn; cart.LastUpdatedOn = lastUpdatedOn; 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); }