/// <summary> /// Deprecated Method for adding a new object to the ShoppingCartItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShoppingCartItems(ShoppingCartItem shoppingCartItem) { base.AddObject("ShoppingCartItems", shoppingCartItem); }
/// <summary> /// Create a new ShoppingCartItem object. /// </summary> /// <param name="shoppingCartItemID">Initial value of the ShoppingCartItemID property.</param> /// <param name="shoppingCartID">Initial value of the ShoppingCartID property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static ShoppingCartItem CreateShoppingCartItem(global::System.Int32 shoppingCartItemID, global::System.String shoppingCartID, global::System.Int32 quantity, global::System.Int32 productID, global::System.DateTime dateCreated, global::System.DateTime modifiedDate) { ShoppingCartItem shoppingCartItem = new ShoppingCartItem(); shoppingCartItem.ShoppingCartItemID = shoppingCartItemID; shoppingCartItem.ShoppingCartID = shoppingCartID; shoppingCartItem.Quantity = quantity; shoppingCartItem.ProductID = productID; shoppingCartItem.DateCreated = dateCreated; shoppingCartItem.ModifiedDate = modifiedDate; return shoppingCartItem; }