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