db.ToDataTablePage array parameter bug

This commit is contained in:
sunkaixuna 2021-07-21 12:52:26 +08:00
parent 30c01c88c4
commit e7dd2b97e3

View File

@ -1031,9 +1031,9 @@ namespace SqlSugar
public virtual DataTable ToDataTablePage(int pageIndex, int pageSize, ref int totalNumber)
{
_RestoreMapping = false;
totalNumber = this.Count();
totalNumber = this.Clone().Count();
_RestoreMapping = true;
var result = ToDataTablePage(pageIndex, pageSize);
var result = this.Clone().ToDataTablePage(pageIndex, pageSize);
return result;
}
public virtual DataTable ToDataTablePage(int pageIndex, int pageSize, ref int totalNumber, ref int totalPage)