mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update README.md
This commit is contained in:
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 较新版本支持
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user