From 2127c47d00eda26fd4f8a898f6e22ade2313dce4 Mon Sep 17 00:00:00 2001 From: hang <87227557@qq.com> Date: Sun, 8 Sep 2024 18:57:36 +0800 Subject: [PATCH] =?UTF-8?q?T4=E6=A8=A1=E6=9D=BF=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=20=E6=8C=89=E7=85=A7=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/IRaCIS.Core.API.csproj | 172 +++++++++--------- .../IRaCIS.Core.Application.csproj | 2 +- .../IRaCIS.Core.Infra.EFCore.csproj | 2 +- .../CodeTemplates/EFCore/EntityType.t4 | 2 +- IRaCIS.Core.Test/IRaCIS.Core.Test.csproj | 4 + 5 files changed, 97 insertions(+), 85 deletions(-) diff --git a/IRaCIS.Core.API/IRaCIS.Core.API.csproj b/IRaCIS.Core.API/IRaCIS.Core.API.csproj index f274cf612..2de032f41 100644 --- a/IRaCIS.Core.API/IRaCIS.Core.API.csproj +++ b/IRaCIS.Core.API/IRaCIS.Core.API.csproj @@ -1,99 +1,107 @@  - - net8.0 - false - 354572d4-9e15-4099-807c-63a2d29ff9f2 - default - Linux - 1.0.1.001 - 上海展影医疗科技有限公司 - IRC影像系统 (EICS) - 上海展影医疗科技有限公司版权所有 - + + net8.0 + false + 354572d4-9e15-4099-807c-63a2d29ff9f2 + default + Linux + 1.0.1.001 + 上海展影医疗科技有限公司 + IRC影像系统 (EICS) + 上海展影医疗科技有限公司版权所有 + - - .\IRaCIS.Core.API.xml - 1701;1702;1591;1570; - ..\bin\ - + + .\IRaCIS.Core.API.xml + 1701;1702;1591;1570; + ..\bin\ + - - bin\Release\IRaCIS.Core.API.xml - bin\Release\ - 1701;1702;1591 - + + bin\Release\IRaCIS.Core.API.xml + bin\Release\ + 1701;1702;1591 + - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - Always - - - Always - - - Always - - - - - Client - - + + + + + + Always + + + Always + + + Always + + + + + Client + + - - - - - - - - - - - - - - - - - - - + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + - - - - + + + + - - - + + + - - - + + + - + + + + + diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj index d4e5708b8..1c751043f 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.csproj @@ -59,7 +59,7 @@ - + diff --git a/IRaCIS.Core.Infra.EFCore/IRaCIS.Core.Infra.EFCore.csproj b/IRaCIS.Core.Infra.EFCore/IRaCIS.Core.Infra.EFCore.csproj index 0f0f66b72..3d99c723f 100644 --- a/IRaCIS.Core.Infra.EFCore/IRaCIS.Core.Infra.EFCore.csproj +++ b/IRaCIS.Core.Infra.EFCore/IRaCIS.Core.Infra.EFCore.csproj @@ -19,7 +19,7 @@ - + diff --git a/IRaCIS.Core.Test/CodeTemplates/EFCore/EntityType.t4 b/IRaCIS.Core.Test/CodeTemplates/EFCore/EntityType.t4 index 83ce23cca..65b856ee7 100644 --- a/IRaCIS.Core.Test/CodeTemplates/EFCore/EntityType.t4 +++ b/IRaCIS.Core.Test/CodeTemplates/EFCore/EntityType.t4 @@ -68,7 +68,7 @@ public partial class <#= EntityType.Name #>: BaseFullAuditEntity <# var firstProperty = true; var excludedColumns = new[] { "CreateUserId", "Id", "UpdateUserId", "CreateTime", "UpdateTime", "DeleteUserId", "IsDeleted", "DeletedTime" }; - foreach (var property in EntityType.GetProperties().OrderBy(p => p.GetColumnOrder() ?? -1)) + foreach (var property in EntityType.GetProperties().OrderBy(p => p.GetColumnOrder() ?? -1).OrderBy(t=>t.Name)) { if (!excludedColumns.Contains(property.Name)) { diff --git a/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj b/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj index 48fc1c1c4..a63626c74 100644 --- a/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj +++ b/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj @@ -100,6 +100,10 @@ runtime; build; native; contentfiles; analyzers; buildtransitive + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +