mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 20:57:58 +08:00
Add Check
This commit is contained in:
parent
7288921bd7
commit
cb1f3b42ff
@ -90,6 +90,10 @@ namespace SqlSugar
|
||||
}
|
||||
public StorageablePage<T> PageSize(int PageSize,Action<int> ActionCallBack=null)
|
||||
{
|
||||
if (PageSize > 10000)
|
||||
{
|
||||
Check.ExceptionEasy("Advanced save page Settings should not exceed 10,000, and the reasonable number of pages is about 2000", "高级保存分页设置不要超过1万,合理分页数在2000左右");
|
||||
}
|
||||
StorageablePage<T> page = new StorageablePage<T>();
|
||||
page.Context = this.Context;
|
||||
page.PageSize = PageSize;
|
||||
|
Loading…
Reference in New Issue
Block a user