Update SqlServer page

This commit is contained in:
sunkaixuna
2021-07-04 01:38:30 +08:00
parent e8243f4229
commit 3473699629
2 changed files with 2 additions and 2 deletions

View File

@@ -1127,7 +1127,7 @@ namespace SqlSugar
}
else
{
totalNumber =await this.Clone().CountAsync();
totalNumber.Value =await this.Clone().CountAsync();
_ToOffsetPage(pageIndex, pageSize);
return await this.Clone().ToListAsync();
}

View File

@@ -52,7 +52,7 @@ namespace SqlSugar
{
if (this.OrderByValue.IsNullOrEmpty())
{
result += " ORDER BY getdate() ";
result += " ORDER BY GETDATE() ";
}
result += this.Offset;
}