Exemplo n.º 1
0
        public PnDistritoCollection FetchByQuery(Query qry)
        {
            PnDistritoCollection coll = new PnDistritoCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemplo n.º 2
0
        public PnDistritoCollection FetchAll()
        {
            PnDistritoCollection coll = new PnDistritoCollection();
            Query qry = new Query(PnDistrito.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }