Esempio n. 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);
 }
Esempio n. 2
0
 /// <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="price">Initial value of the Price property.</param>
 /// <param name="discount">Initial value of the Discount property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="sKU">Initial value of the SKU property.</param>
 /// <param name="orderType">Initial value of the OrderType property.</param>
 public static OrderItem CreateOrderItem(global::System.Int32 id, global::System.Int32 orderID, global::System.Decimal price, global::System.Decimal discount, global::System.String title, global::System.String sKU, global::System.String orderType)
 {
     OrderItem orderItem = new OrderItem();
     orderItem.ID = id;
     orderItem.OrderID = orderID;
     orderItem.Price = price;
     orderItem.Discount = discount;
     orderItem.Title = title;
     orderItem.SKU = sKU;
     orderItem.OrderType = orderType;
     return orderItem;
 }