Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInvoices(Invoice invoice)
 {
     base.AddObject("Invoices", invoice);
 }
Пример #2
0
 /// <summary>
 /// Create a new Invoice object.
 /// </summary>
 /// <param name="invoiceId">Initial value of the InvoiceId property.</param>
 /// <param name="invoiceDate">Initial value of the InvoiceDate property.</param>
 /// <param name="total">Initial value of the Total property.</param>
 public static Invoice CreateInvoice(global::System.Int32 invoiceId, global::System.DateTime invoiceDate, global::System.Decimal total)
 {
     Invoice invoice = new Invoice();
     invoice.InvoiceId = invoiceId;
     invoice.InvoiceDate = invoiceDate;
     invoice.Total = total;
     return invoice;
 }