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