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