diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SimpleClient.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SimpleClient.cs index 5deae4023..707a742aa 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SimpleClient.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/SimpleClient.cs @@ -189,10 +189,10 @@ namespace SqlSugar { return Context.Queryable().SingleAsync(whereExpression); } - public virtual Task> GetPageListAsync(Expression> whereExpression, PageModel page) + public async virtual Task> GetPageListAsync(Expression> whereExpression, PageModel page) { RefAsync count = 0; - var result = Context.Queryable().Where(whereExpression).ToPageListAsync(page.PageIndex, page.PageSize, count); + var result = await Context.Queryable().Where(whereExpression).ToPageListAsync(page.PageIndex, page.PageSize, count); page.PageCount = count; return result; }