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