/// <summary> /// Create a new OrderItem 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> /// <param name="unitPrice">Initial value of the UnitPrice property.</param> /// <param name="totalAmount">Initial value of the TotalAmount property.</param> public static OrderItem CreateOrderItem(global::System.Int32 id, global::System.Int32 orderID, global::System.Int32 productID, global::System.Int32 quantity, global::System.Decimal unitPrice, global::System.Decimal totalAmount) { OrderItem orderItem = new OrderItem(); orderItem.ID = id; orderItem.OrderID = orderID; orderItem.ProductID = productID; orderItem.Quantity = quantity; orderItem.UnitPrice = unitPrice; orderItem.TotalAmount = totalAmount; return orderItem; }
/// <summary> /// Deprecated Method for adding a new object to the OrderItems EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOrderItems(OrderItem orderItem) { base.AddObject("OrderItems", orderItem); }