/// <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(Invoices invoices) { base.AddObject("Invoices", invoices); }
/// <summary> /// Create a new Invoices 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 Invoices CreateInvoices(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) { Invoices invoices = new Invoices(); invoices.CustomerName = customerName; invoices.Salesperson = salesperson; invoices.OrderID = orderID; invoices.ShipperName = shipperName; invoices.ProductID = productID; invoices.ProductName = productName; invoices.UnitPrice = unitPrice; invoices.Quantity = quantity; invoices.Discount = discount; return invoices; }