/// <summary> /// Create a new Invoice object. /// </summary> /// <param name="invoiceID">Initial value of the InvoiceID property.</param> /// <param name="invoiceNumber">Initial value of the InvoiceNumber property.</param> /// <param name="invoiceDate">Initial value of the InvoiceDate property.</param> /// <param name="isProforma">Initial value of the IsProforma property.</param> /// <param name="consigneeID">Initial value of the ConsigneeID property.</param> /// <param name="destinationCountryID">Initial value of the DestinationCountryID property.</param> /// <param name="orderID">Initial value of the OrderID property.</param> /// <param name="originCountryID">Initial value of the OriginCountryID property.</param> /// <param name="carriageByID">Initial value of the CarriageByID property.</param> public static Invoice CreateInvoice(global::System.Int64 invoiceID, global::System.String invoiceNumber, global::System.DateTime invoiceDate, global::System.Boolean isProforma, global::System.Int32 consigneeID, global::System.Int32 destinationCountryID, global::System.Int64 orderID, global::System.Int32 originCountryID, global::System.Byte carriageByID) { Invoice invoice = new Invoice(); invoice.InvoiceID = invoiceID; invoice.InvoiceNumber = invoiceNumber; invoice.InvoiceDate = invoiceDate; invoice.IsProforma = isProforma; invoice.ConsigneeID = consigneeID; invoice.DestinationCountryID = destinationCountryID; invoice.OrderID = orderID; invoice.OriginCountryID = originCountryID; invoice.CarriageByID = carriageByID; 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); }