Пример #1
0
 /// <summary>
 /// Create a new SalesOrderHeader object.
 /// </summary>
 /// <param name="salesOrderID">Initial value of the SalesOrderID property.</param>
 /// <param name="revisionNumber">Initial value of the RevisionNumber property.</param>
 /// <param name="orderDate">Initial value of the OrderDate property.</param>
 /// <param name="dueDate">Initial value of the DueDate property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="onlineOrderFlag">Initial value of the OnlineOrderFlag property.</param>
 /// <param name="salesOrderNumber">Initial value of the SalesOrderNumber property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="billToAddressID">Initial value of the BillToAddressID property.</param>
 /// <param name="shipToAddressID">Initial value of the ShipToAddressID property.</param>
 /// <param name="shipMethodID">Initial value of the ShipMethodID property.</param>
 /// <param name="subTotal">Initial value of the SubTotal property.</param>
 /// <param name="taxAmt">Initial value of the TaxAmt property.</param>
 /// <param name="freight">Initial value of the Freight property.</param>
 /// <param name="totalDue">Initial value of the TotalDue property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static SalesOrderHeader CreateSalesOrderHeader(global::System.Int32 salesOrderID, global::System.Byte revisionNumber, global::System.DateTime orderDate, global::System.DateTime dueDate, global::System.Byte status, global::System.Boolean onlineOrderFlag, global::System.String salesOrderNumber, global::System.Int32 customerID, global::System.Int32 billToAddressID, global::System.Int32 shipToAddressID, global::System.Int32 shipMethodID, global::System.Decimal subTotal, global::System.Decimal taxAmt, global::System.Decimal freight, global::System.Decimal totalDue, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     SalesOrderHeader salesOrderHeader = new SalesOrderHeader();
     salesOrderHeader.SalesOrderID = salesOrderID;
     salesOrderHeader.RevisionNumber = revisionNumber;
     salesOrderHeader.OrderDate = orderDate;
     salesOrderHeader.DueDate = dueDate;
     salesOrderHeader.Status = status;
     salesOrderHeader.OnlineOrderFlag = onlineOrderFlag;
     salesOrderHeader.SalesOrderNumber = salesOrderNumber;
     salesOrderHeader.CustomerID = customerID;
     salesOrderHeader.BillToAddressID = billToAddressID;
     salesOrderHeader.ShipToAddressID = shipToAddressID;
     salesOrderHeader.ShipMethodID = shipMethodID;
     salesOrderHeader.SubTotal = subTotal;
     salesOrderHeader.TaxAmt = taxAmt;
     salesOrderHeader.Freight = freight;
     salesOrderHeader.TotalDue = totalDue;
     salesOrderHeader.rowguid = rowguid;
     salesOrderHeader.ModifiedDate = modifiedDate;
     return salesOrderHeader;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SalesOrderHeaders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSalesOrderHeaders(SalesOrderHeader salesOrderHeader)
 {
     base.AddObject("SalesOrderHeaders", salesOrderHeader);
 }