Example #1
0
        public SysMedicamentoCollection FetchByQuery(Query qry)
        {
            SysMedicamentoCollection coll = new SysMedicamentoCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #2
0
        public SysMedicamentoCollection FetchAll()
        {
            SysMedicamentoCollection coll = new SysMedicamentoCollection();
            Query qry = new Query(SysMedicamento.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Example #3
0
        public SysMedicamentoCollection FetchByID(object IdMedicamento)
        {
            SysMedicamentoCollection coll = new SysMedicamentoCollection().Where("idMedicamento", IdMedicamento).Load();

            return(coll);
        }