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); }
public EmployeeAddressCollection FetchByID(object EmployeeID) { EmployeeAddressCollection coll = new EmployeeAddressCollection().Where("EmployeeID", EmployeeID).Load(); return(coll); }