/// <summary>
 /// Create a new InvoiceDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="product_ProductID">Initial value of the Product_ProductID property.</param>
 /// <param name="invoice_InvoiceDetail">Initial value of the Invoice_InvoiceDetail property.</param>
 public static InvoiceDetail CreateInvoiceDetail(global::System.Int32 id, global::System.Int32 quantity, global::System.Decimal unitPrice, global::System.Int32 product_ProductID, global::System.Int32 invoice_InvoiceDetail)
 {
     InvoiceDetail invoiceDetail = new InvoiceDetail();
     invoiceDetail.Id = id;
     invoiceDetail.Quantity = quantity;
     invoiceDetail.UnitPrice = unitPrice;
     invoiceDetail.Product_ProductID = product_ProductID;
     invoiceDetail.Invoice_InvoiceDetail = invoice_InvoiceDetail;
     return invoiceDetail;
 }
Example #2
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);
 }
 /// <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);
 }