/// <summary> /// Create a new Invoice object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="invoiceDate">Initial value of the InvoiceDate property.</param> /// <param name="invoiceDue">Initial value of the InvoiceDue property.</param> /// <param name="invoiceStatus">Initial value of the InvoiceStatus property.</param> /// <param name="shipDate">Initial value of the ShipDate property.</param> /// <param name="invoice_Patient">Initial value of the Invoice_Patient property.</param> public static Invoice CreateInvoice(global::System.Int32 id, global::System.DateTime invoiceDate, global::System.DateTime invoiceDue, global::System.Int32 invoiceStatus, global::System.DateTime shipDate, global::System.Int32 invoice_Patient) { Invoice invoice = new Invoice(); invoice.Id = id; invoice.InvoiceDate = invoiceDate; invoice.InvoiceDue = invoiceDue; invoice.InvoiceStatus = invoiceStatus; invoice.ShipDate = shipDate; invoice.Invoice_Patient = invoice_Patient; return invoice; }
/// <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); }