同步openauth.Core:

采用代码生成器的表结构控制前端显示,删除以前按照dbset获取数据库结构
优化注释
升级EF及所有三方的版本
This commit is contained in:
yubaolee
2021-10-18 00:42:29 +08:00
parent 3a70bf8e43
commit 9fd0405721
60 changed files with 371 additions and 267 deletions

View File

@@ -127,12 +127,12 @@ namespace OpenAuth.WebApi.Controllers
/// <param name="moduleCode">模块的Code如Category</param>
/// <returns></returns>
[HttpGet]
public Response<List<KeyDescription>> GetProperties(string moduleCode)
public Response<List<BuilderTableColumn>> GetProperties(string moduleCode)
{
var result = new Response<List<KeyDescription>>();
var result = new Response<List<BuilderTableColumn>>();
try
{
result.Result = _authStrategyContext.GetProperties(moduleCode);
result.Result = _authStrategyContext.GetTableColumns(moduleCode);
}
catch (Exception ex)
{

View File

@@ -6,6 +6,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\OpenAuth.WebApi.xml</DocumentationFile>
<NoWarn>1701;1702;1591;1573;1572;1570</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -30,7 +31,7 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="3.1.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.1.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.0" />
<PackageReference Include="MiniProfiler.AspNetCore" Version="4.2.22" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
<PackageReference Include="MiniProfiler.EntityFrameworkCore" Version="4.2.22" />

View File

@@ -40,7 +40,7 @@ namespace OpenAuth.App
result.data = objs.OrderBy(u => u.Id)
.Skip((request.page - 1) * request.limit)
.Take(request.limit);
result.count = objs.Count();
result.count =await objs.CountAsync();
return result;
}

View File

@@ -47,7 +47,7 @@ namespace OpenAuth.App
result.data = objs.OrderBy(u => u.Id)
.Skip((request.page - 1) * request.limit)
.Take(request.limit).Select($"new ({propertyStr})");
result.count = objs.Count();
result.count =await objs.CountAsync();
return result;
}