Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the InvoiceDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInvoiceDetails(InvoiceDetail invoiceDetail)
 {
     base.AddObject("InvoiceDetails", invoiceDetail);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new InvoiceDetail object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="invoiceID">Initial value of the InvoiceID property.</param>
 /// <param name="itemID">Initial value of the ItemID property.</param>
 /// <param name="qty">Initial value of the Qty property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="subTotal">Initial value of the SubTotal property.</param>
 public static InvoiceDetail CreateInvoiceDetail(global::System.Int32 id, global::System.Int32 invoiceID, global::System.Int32 itemID, global::System.Double qty, global::System.Decimal unitPrice, global::System.Decimal subTotal)
 {
     InvoiceDetail invoiceDetail = new InvoiceDetail();
     invoiceDetail.ID = id;
     invoiceDetail.InvoiceID = invoiceID;
     invoiceDetail.ItemID = itemID;
     invoiceDetail.Qty = qty;
     invoiceDetail.UnitPrice = unitPrice;
     invoiceDetail.SubTotal = subTotal;
     return invoiceDetail;
 }