mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-26 21:38:32 +08:00
Update SqlServer page
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (this.OrderByValue.IsNullOrEmpty())
|
||||
{
|
||||
result += " ORDER BY getdate() ";
|
||||
result += " ORDER BY GETDATE() ";
|
||||
}
|
||||
result += this.Offset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user