/// <summary> /// Create a new Invoice object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="total">Initial value of the Total property.</param> /// <param name="customerId">Initial value of the CustomerId property.</param> public static Invoice CreateInvoice(global::System.Int32 id, global::System.Decimal total, global::System.Int32 customerId) { Invoice invoice = new Invoice(); invoice.Id = id; invoice.Total = total; invoice.CustomerId = customerId; 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); }