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