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