/// <summary> /// Create a new OrderedProduct object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="quantity">Initial value of the Quantity property.</param> public static OrderedProduct CreateOrderedProduct(global::System.Int32 id, global::System.Int32 orderID, global::System.Int32 productID, global::System.Int32 quantity) { OrderedProduct orderedProduct = new OrderedProduct(); orderedProduct.ID = id; orderedProduct.OrderID = orderID; orderedProduct.ProductID = productID; orderedProduct.Quantity = quantity; return orderedProduct; }
/// <summary> /// Deprecated Method for adding a new object to the OrderedProducts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderedProducts(OrderedProduct orderedProduct) { base.AddObject("OrderedProducts", orderedProduct); }