/// <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="invNumber">Initial value of the InvNumber property.</param>
 /// <param name="invFrom">Initial value of the InvFrom property.</param>
 /// <param name="invTo">Initial value of the InvTo property.</param>
 /// <param name="paid">Initial value of the Paid property.</param>
 /// <param name="emailed">Initial value of the Emailed property.</param>
 /// <param name="internal">Initial value of the Internal property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 public static Invoice CreateInvoice(global::System.String invNumber, global::System.DateTime invFrom, global::System.DateTime invTo, global::System.Boolean paid, global::System.Boolean emailed, global::System.Boolean @internal, global::System.Boolean deleted, global::System.DateTime createdDate, global::System.String createdBy)
 {
     Invoice invoice = new Invoice();
     invoice.InvNumber = invNumber;
     invoice.InvFrom = invFrom;
     invoice.InvTo = invTo;
     invoice.Paid = paid;
     invoice.Emailed = emailed;
     invoice.Internal = @internal;
     invoice.Deleted = deleted;
     invoice.CreatedDate = createdDate;
     invoice.CreatedBy = createdBy;
     return invoice;
 }