public PnDistritoCollection FetchByQuery(Query qry) { PnDistritoCollection coll = new PnDistritoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnDistritoCollection FetchAll() { PnDistritoCollection coll = new PnDistritoCollection(); Query qry = new Query(PnDistrito.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnDistritoCollection FetchByID(object IdDistrito) { PnDistritoCollection coll = new PnDistritoCollection().Where("id_distrito", IdDistrito).Load(); return(coll); }