public SysMedicamentoCollection FetchByQuery(Query qry) { SysMedicamentoCollection coll = new SysMedicamentoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public SysMedicamentoCollection FetchAll() { SysMedicamentoCollection coll = new SysMedicamentoCollection(); Query qry = new Query(SysMedicamento.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public SysMedicamentoCollection FetchByID(object IdMedicamento) { SysMedicamentoCollection coll = new SysMedicamentoCollection().Where("idMedicamento", IdMedicamento).Load(); return(coll); }