public PdProfeCollection FetchByQuery(Query qry) { PdProfeCollection coll = new PdProfeCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PdProfeCollection FetchAll() { PdProfeCollection coll = new PdProfeCollection(); Query qry = new Query(PdProfe.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PdProfeCollection FetchAllPaged(int start, int pageLength) { int startIndex; if (start == 0) { startIndex = 1; } else { startIndex = start / pageLength; } PdProfeCollection coll = new PdProfeCollection(); Query qry = new Query(PdProfe.Schema); qry.PageSize = pageLength; qry.PageIndex = startIndex; coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PdProfeCollection FetchByID(object Id) { PdProfeCollection coll = new PdProfeCollection().Where("id", Id).Load(); return(coll); }