Update README.md

This commit is contained in:
果糖网
2021-10-10 22:11:27 +08:00
committed by GitHub
parent 1051a41b1a
commit 03b4e17d7c

View File

@@ -47,5 +47,15 @@ WHERE
([o].[Id] = @Id0)
```
## Page query
```cs
int pageIndex = 1;
int pageSize = 20;
int totalCount=0;
//单表分页
var page = db.Queryable<Student>().ToPageList(pageIndex, pageSize, ref totalCount);
//如果SqlServer不想有Rownumber可以用 ToOffsetPage 较新版本支持
```