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