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