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

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

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

            return(coll);
        }