コード例 #1
0
        public SysDepartamentoCollection FetchByQuery(Query qry)
        {
            SysDepartamentoCollection coll = new SysDepartamentoCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
コード例 #2
0
        public SysDepartamentoCollection FetchAll()
        {
            SysDepartamentoCollection coll = new SysDepartamentoCollection();
            Query qry = new Query(SysDepartamento.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
コード例 #3
0
        public SysDepartamentoCollection FetchByID(object IdDepartamento)
        {
            SysDepartamentoCollection coll = new SysDepartamentoCollection().Where("idDepartamento", IdDepartamento).Load();

            return(coll);
        }