Beispiel #1
0
 /// <summary>
 /// Create a new OrderDetail object.
 /// </summary>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 public static OrderDetail CreateOrderDetail(global::System.Int32 orderID, global::System.Int32 productID, global::System.Decimal price, global::System.Int32 quantity)
 {
     OrderDetail orderDetail = new OrderDetail();
     orderDetail.OrderID = orderID;
     orderDetail.ProductID = productID;
     orderDetail.Price = price;
     orderDetail.Quantity = quantity;
     return orderDetail;
 }
Beispiel #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OrderDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrderDetails(OrderDetail orderDetail)
 {
     base.AddObject("OrderDetails", orderDetail);
 }