public PnTipoEventoCollection FetchByQuery(Query qry) { PnTipoEventoCollection coll = new PnTipoEventoCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public PnTipoEventoCollection FetchAll() { PnTipoEventoCollection coll = new PnTipoEventoCollection(); Query qry = new Query(PnTipoEvento.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }