/// <summary> /// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet<T> 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="claimID">Initial value of the ClaimID property.</param> /// <param name="isVoid">Initial value of the IsVoid property.</param> /// <param name="taxRate">Initial value of the TaxRate property.</param> public static Invoice CreateInvoice(global::System.Int32 invoiceID, global::System.Int32 claimID, global::System.Boolean isVoid, global::System.Decimal taxRate) { Invoice invoice = new Invoice(); invoice.InvoiceID = invoiceID; invoice.ClaimID = claimID; invoice.IsVoid = isVoid; invoice.TaxRate = taxRate; return invoice; }