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