mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 18:22:11 +08:00
同步openauth.Core:
采用代码生成器的表结构控制前端显示,删除以前按照dbset获取数据库结构 优化注释 升级EF及所有三方的版本
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
||||
using Castle.Core.Internal;
|
||||
using Infrastructure;
|
||||
using Infrastructure.Extensions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OpenAuth.App.Interface;
|
||||
using OpenAuth.App.Request;
|
||||
using OpenAuth.App.Response;
|
||||
@@ -108,8 +109,8 @@ namespace OpenAuth.App
|
||||
|
||||
return new TableData
|
||||
{
|
||||
count = userViews.Count(),
|
||||
data = userViews.OrderBy(u => u.Name)
|
||||
count =userViews.Count(),
|
||||
data =userViews.OrderBy(u => u.Name)
|
||||
.Skip((request.page - 1) * request.limit)
|
||||
.Take(request.limit),
|
||||
};
|
||||
@@ -282,8 +283,8 @@ namespace OpenAuth.App
|
||||
|
||||
return new TableData
|
||||
{
|
||||
count = users.Count(),
|
||||
data = users.Skip((request.page - 1) * request.limit).Take(request.limit)
|
||||
count =await users.CountAsync(),
|
||||
data =await users.Skip((request.page - 1) * request.limit).Take(request.limit).ToListAsync()
|
||||
};
|
||||
}
|
||||
|
||||
@@ -302,8 +303,8 @@ namespace OpenAuth.App
|
||||
|
||||
return new TableData
|
||||
{
|
||||
count = users.Count(),
|
||||
data = users.Skip((request.page - 1) * request.limit).Take(request.limit)
|
||||
count =await users.CountAsync(),
|
||||
data =await users.Skip((request.page - 1) * request.limit).Take(request.limit).ToListAsync()
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user