public NhanVienCollection FetchByQuery(Query qry) { NhanVienCollection coll = new NhanVienCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NhanVienCollection FetchAll() { NhanVienCollection coll = new NhanVienCollection(); Query qry = new Query(NhanVien.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return(coll); }
public NhanVienCollection FetchByID(object MaNV) { NhanVienCollection coll = new NhanVienCollection().Where("MaNV", MaNV).Load(); return(coll); }