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