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

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

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

            return(coll);
        }