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