Пример #1
0
        public PnDistritoCollection FetchByQuery(Query qry)
        {
            PnDistritoCollection coll = new PnDistritoCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #2
0
        public PnDistritoCollection FetchAll()
        {
            PnDistritoCollection coll = new PnDistritoCollection();
            Query qry = new Query(PnDistrito.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Пример #3
0
        public PnDistritoCollection FetchByID(object IdDistrito)
        {
            PnDistritoCollection coll = new PnDistritoCollection().Where("id_distrito", IdDistrito).Load();

            return(coll);
        }