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