public EmployeeDepartmentHistoryCollection FetchByQuery(Query qry) { EmployeeDepartmentHistoryCollection coll = new EmployeeDepartmentHistoryCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public EmployeeDepartmentHistoryCollection FetchAll() { EmployeeDepartmentHistoryCollection coll = new EmployeeDepartmentHistoryCollection(); Query qry = new Query(EmployeeDepartmentHistory.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }