/// <summary> /// Deprecated Method for adding a new object to the PurchaseOrderHeaders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPurchaseOrderHeaders(PurchaseOrderHeader purchaseOrderHeader) { base.AddObject("PurchaseOrderHeaders", purchaseOrderHeader); }
/// <summary> /// Create a new PurchaseOrderHeader object. /// </summary> /// <param name="purchaseOrderID">Initial value of the PurchaseOrderID property.</param> /// <param name="revisionNumber">Initial value of the RevisionNumber property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="employeeID">Initial value of the EmployeeID property.</param> /// <param name="vendorID">Initial value of the VendorID property.</param> /// <param name="shipMethodID">Initial value of the ShipMethodID property.</param> /// <param name="orderDate">Initial value of the OrderDate 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="modifiedDate">Initial value of the ModifiedDate property.</param> public static PurchaseOrderHeader CreatePurchaseOrderHeader(global::System.Int32 purchaseOrderID, global::System.Byte revisionNumber, global::System.Byte status, global::System.Int32 employeeID, global::System.Int32 vendorID, global::System.Int32 shipMethodID, global::System.DateTime orderDate, global::System.Decimal subTotal, global::System.Decimal taxAmt, global::System.Decimal freight, global::System.Decimal totalDue, global::System.DateTime modifiedDate) { PurchaseOrderHeader purchaseOrderHeader = new PurchaseOrderHeader(); purchaseOrderHeader.PurchaseOrderID = purchaseOrderID; purchaseOrderHeader.RevisionNumber = revisionNumber; purchaseOrderHeader.Status = status; purchaseOrderHeader.EmployeeID = employeeID; purchaseOrderHeader.VendorID = vendorID; purchaseOrderHeader.ShipMethodID = shipMethodID; purchaseOrderHeader.OrderDate = orderDate; purchaseOrderHeader.SubTotal = subTotal; purchaseOrderHeader.TaxAmt = taxAmt; purchaseOrderHeader.Freight = freight; purchaseOrderHeader.TotalDue = totalDue; purchaseOrderHeader.ModifiedDate = modifiedDate; return purchaseOrderHeader; }