public ConConsultaMedicamentoCollection FetchByQuery(Query qry) { ConConsultaMedicamentoCollection coll = new ConConsultaMedicamentoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public ConConsultaMedicamentoCollection FetchAll() { ConConsultaMedicamentoCollection coll = new ConConsultaMedicamentoCollection(); Query qry = new Query(ConConsultaMedicamento.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }