コード例 #1
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(OrderDetails orderDetails)
 {
     base.AddObject("OrderDetails", orderDetails);
 }
コード例 #2
0
 /// <summary>
 /// Create a new OrderDetails object.
 /// </summary>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="discount">Initial value of the Discount property.</param>
 public static OrderDetails CreateOrderDetails(global::System.Int32 orderID, global::System.Int32 productID, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount)
 {
     OrderDetails orderDetails = new OrderDetails();
     orderDetails.OrderID = orderID;
     orderDetails.ProductID = productID;
     orderDetails.UnitPrice = unitPrice;
     orderDetails.Quantity = quantity;
     orderDetails.Discount = discount;
     return orderDetails;
 }