예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderItems(OrderItem orderItem)
 {
     base.AddObject("OrderItems", orderItem);
 }
예제 #2
0
 /// <summary>
 /// Create a new OrderItem object.
 /// </summary>
 /// <param name="orderItemId">Initial value of the OrderItemId property.</param>
 /// <param name="orderId">Initial value of the OrderId property.</param>
 /// <param name="itemId">Initial value of the ItemId property.</param>
 /// <param name="itemTypeId">Initial value of the ItemTypeId property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="lineItemCost">Initial value of the LineItemCost property.</param>
 public static OrderItem CreateOrderItem(global::System.Int32 orderItemId, global::System.Int32 orderId, global::System.Int32 itemId, global::System.Int32 itemTypeId, global::System.Int32 quantity, global::System.Decimal lineItemCost)
 {
     OrderItem orderItem = new OrderItem();
     orderItem.OrderItemId = orderItemId;
     orderItem.OrderId = orderId;
     orderItem.ItemId = itemId;
     orderItem.ItemTypeId = itemTypeId;
     orderItem.Quantity = quantity;
     orderItem.LineItemCost = lineItemCost;
     return orderItem;
 }