/// <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="id">Initial value of the Id property.</param> /// <param name="shoppingDate">Initial value of the ShoppingDate property.</param> /// <param name="clientId">Initial value of the ClientId property.</param> public static ShoppingCart CreateShoppingCart(global::System.Int32 id, global::System.DateTime shoppingDate, global::System.Int32 clientId) { ShoppingCart shoppingCart = new ShoppingCart(); shoppingCart.Id = id; shoppingCart.ShoppingDate = shoppingDate; shoppingCart.ClientId = clientId; return shoppingCart; }