/// <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="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; }