예제 #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(OrderDetail orderDetail)
 {
     base.AddObject("OrderDetails", orderDetail);
 }
예제 #2
0
 /// <summary>
 /// Create a new OrderDetail object.
 /// </summary>
 /// <param name="salesOrderID">Initial value of the SalesOrderID property.</param>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="orderQty">Initial value of the OrderQty property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="unitPriceDiscount">Initial value of the UnitPriceDiscount property.</param>
 /// <param name="lineTotal">Initial value of the LineTotal property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static OrderDetail CreateOrderDetail(global::System.Int32 salesOrderID, global::System.Int32 id, global::System.Int16 orderQty, global::System.Decimal unitPrice, global::System.Decimal unitPriceDiscount, global::System.Decimal lineTotal, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     OrderDetail orderDetail = new OrderDetail();
     orderDetail.SalesOrderID = salesOrderID;
     
     orderDetail.Id = id;
     
     orderDetail.OrderQty = orderQty;
     
     orderDetail.UnitPrice = unitPrice;
     
     orderDetail.UnitPriceDiscount = unitPriceDiscount;
     
     orderDetail.LineTotal = lineTotal;
     
     orderDetail.rowguid = rowguid;
     
     orderDetail.ModifiedDate = modifiedDate;
     
     return orderDetail;
 }