/// <summary> /// Deprecated Method for adding a new object to the SalesOrderHeader EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSalesOrderHeader(SalesOrderHeader salesOrderHeader) { base.AddObject("SalesOrderHeader", salesOrderHeader); }
/// <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="shipMethod">Initial value of the ShipMethod 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.String shipMethod, 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.ShipMethod = shipMethod; salesOrderHeader.SubTotal = subTotal; salesOrderHeader.TaxAmt = taxAmt; salesOrderHeader.Freight = freight; salesOrderHeader.TotalDue = totalDue; salesOrderHeader.rowguid = rowguid; salesOrderHeader.ModifiedDate = modifiedDate; return salesOrderHeader; }