mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update README.md
This commit is contained in:
parent
1051a41b1a
commit
03b4e17d7c
12
README.md
12
README.md
@ -47,5 +47,15 @@ WHERE
|
|||||||
([o].[Id] = @Id0)
|
([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 较新版本支持
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user