public PnBarrioCollection FetchByQuery(Query qry) { PnBarrioCollection coll = new PnBarrioCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnBarrioCollection FetchAll() { PnBarrioCollection coll = new PnBarrioCollection(); Query qry = new Query(PnBarrio.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnBarrioCollection FetchByID(object IdBarrio) { PnBarrioCollection coll = new PnBarrioCollection().Where("id_barrio", IdBarrio).Load(); return(coll); }