public TstPacienteCollection FetchByQuery(Query qry) { TstPacienteCollection coll = new TstPacienteCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TstPacienteCollection FetchAll() { TstPacienteCollection coll = new TstPacienteCollection(); Query qry = new Query(TstPaciente.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public TstPacienteCollection FetchByID(object IdPaciente) { TstPacienteCollection coll = new TstPacienteCollection().Where("idPaciente", IdPaciente).Load(); return(coll); }