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