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