/// <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="id">Initial value of the id property.</param> /// <param name="payment_date">Initial value of the payment_date property.</param> /// <param name="customer_id">Initial value of the customer_id property.</param> /// <param name="from_inv_period">Initial value of the from_inv_period property.</param> /// <param name="to_inv_period">Initial value of the to_inv_period property.</param> /// <param name="total_due">Initial value of the total_due property.</param> /// <param name="amount_received">Initial value of the amount_received property.</param> public static Invoice CreateInvoice(global::System.Int32 id, global::System.DateTime payment_date, global::System.Int32 customer_id, global::System.DateTime from_inv_period, global::System.DateTime to_inv_period, global::System.Decimal total_due, global::System.Decimal amount_received) { Invoice invoice = new Invoice(); invoice.id = id; invoice.payment_date = payment_date; invoice.customer_id = customer_id; invoice.from_inv_period = from_inv_period; invoice.to_inv_period = to_inv_period; invoice.total_due = total_due; invoice.amount_received = amount_received; return invoice; }