From 03b4e17d7c13498019e086268fa157cbc7486a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E7=B3=96=E7=BD=91?= <610262374@qq.com> Date: Sun, 10 Oct 2021 22:11:27 +0800 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c48caa1ca..712955a76 100644 --- a/README.md +++ b/README.md @@ -47,5 +47,15 @@ WHERE ([o].[Id] = @Id0) ``` - +## Page query +```cs + + int pageIndex = 1; + int pageSize = 20; + int totalCount=0; + //单表分页 + var page = db.Queryable().ToPageList(pageIndex, pageSize, ref totalCount); + //如果SqlServer不想有Rownumber可以用 ToOffsetPage 较新版本支持 + +```