/// <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);
 }
 /// <summary>
 /// Create a new Invoice object.
 /// </summary>
 /// <param name="invoiceId">Initial value of the InvoiceId property.</param>
 /// <param name="customerId">Initial value of the CustomerId 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.Int32 customerId, global::System.DateTime invoiceDate, global::System.Decimal total)
 {
     Invoice invoice = new Invoice();
     invoice.InvoiceId = invoiceId;
     invoice.CustomerId = customerId;
     invoice.InvoiceDate = invoiceDate;
     invoice.Total = total;
     return invoice;
 }