public WorkOrderCollection FetchByQuery(Query qry) { WorkOrderCollection coll = new WorkOrderCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public WorkOrderCollection FetchAll() { WorkOrderCollection coll = new WorkOrderCollection(); Query qry = new Query(WorkOrder.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public WorkOrderCollection FetchByID(object WorkOrderID) { WorkOrderCollection coll = new WorkOrderCollection().Where("WorkOrderID", WorkOrderID).Load(); return(coll); }