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