/// <summary>
 /// Deprecated Method for adding a new object to the Invoices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInvoices(Invoice invoice)
 {
     base.AddObject("Invoices", invoice);
 }
 /// <summary>
 /// Create a new Invoice object.
 /// </summary>
 /// <param name="customerName">Initial value of the CustomerName property.</param>
 /// <param name="salesperson">Initial value of the Salesperson property.</param>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="shipperName">Initial value of the ShipperName property.</param>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="productName">Initial value of the ProductName property.</param>
 /// <param name="unitPrice">Initial value of the UnitPrice property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="discount">Initial value of the Discount property.</param>
 public static Invoice CreateInvoice(global::System.String customerName, global::System.String salesperson, global::System.Int32 orderID, global::System.String shipperName, global::System.Int32 productID, global::System.String productName, global::System.Decimal unitPrice, global::System.Int16 quantity, global::System.Single discount)
 {
     Invoice invoice = new Invoice();
     invoice.CustomerName = customerName;
     invoice.Salesperson = salesperson;
     invoice.OrderID = orderID;
     invoice.ShipperName = shipperName;
     invoice.ProductID = productID;
     invoice.ProductName = productName;
     invoice.UnitPrice = unitPrice;
     invoice.Quantity = quantity;
     invoice.Discount = discount;
     return invoice;
 }