public LDepartmentCollection FetchByQuery(Query qry) { LDepartmentCollection coll = new LDepartmentCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public LDepartmentCollection FetchAll() { LDepartmentCollection coll = new LDepartmentCollection(); Query qry = new Query(LDepartment.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public LDepartmentCollection FetchByID(object Id) { LDepartmentCollection coll = new LDepartmentCollection().Where("ID", Id).Load(); return(coll); }