private bool FilterPurchaseOrders(PurchaseOrder entity) { return (entity.EmployeeID == this.EmployeeID); }
private void DetachPurchaseOrders(PurchaseOrder entity) { entity.Employee = null; }
private void AttachPurchaseOrders(PurchaseOrder entity) { entity.Employee = this; }
private bool FilterPurchaseOrder(PurchaseOrder entity) { return (entity.PurchaseOrderID == this.PurchaseOrderID); }
/// <summary> /// Deprecated Method for adding a new object to the PurchaseOrders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPurchaseOrders(PurchaseOrder purchaseOrder) { base.AddObject("PurchaseOrders", purchaseOrder); }
/// <summary> /// Create a new PurchaseOrder 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 PurchaseOrder CreatePurchaseOrder(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) { PurchaseOrder purchaseOrder = new PurchaseOrder(); purchaseOrder.PurchaseOrderID = purchaseOrderID; purchaseOrder.RevisionNumber = revisionNumber; purchaseOrder.Status = status; purchaseOrder.EmployeeID = employeeID; purchaseOrder.VendorID = vendorID; purchaseOrder.ShipMethodID = shipMethodID; purchaseOrder.OrderDate = orderDate; purchaseOrder.SubTotal = subTotal; purchaseOrder.TaxAmt = taxAmt; purchaseOrder.Freight = freight; purchaseOrder.TotalDue = totalDue; purchaseOrder.ModifiedDate = modifiedDate; return purchaseOrder; }