From 084b3d8822dfed03446e10233557475f48ba5a1b Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Wed, 4 Sep 2024 15:58:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=A1=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Test/IRaCIS.Core.Test.csproj | 4 ++++
IRaCIS.Core.Test/TT_Template/IRaCIS.Core.Entity.tt | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj b/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj
index a43f6707d..e48a7b472 100644
--- a/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj
+++ b/IRaCIS.Core.Test/IRaCIS.Core.Test.csproj
@@ -67,4 +67,8 @@
+
+
+
+
diff --git a/IRaCIS.Core.Test/TT_Template/IRaCIS.Core.Entity.tt b/IRaCIS.Core.Test/TT_Template/IRaCIS.Core.Entity.tt
index 99090292f..aa45fe94b 100644
--- a/IRaCIS.Core.Test/TT_Template/IRaCIS.Core.Entity.tt
+++ b/IRaCIS.Core.Test/TT_Template/IRaCIS.Core.Entity.tt
@@ -39,17 +39,18 @@ using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;
+using Microsoft.EntityFrameworkCore;
namespace IRaCIS.Core.Domain.Models
{
- [Description("±ΈΧΆ: <#=tableName#>")]
+ [Comment("<#=tableName#>")]
[Table("<#=tableName#>")]
public class <#=tableName#> : BaseFullAuditEntity
{
<# var excludedColumns = new[] { "CreateUserId", "Id", "UpdateUserId", "CreateTime", "UpdateTime", "DeleteUserId", "IsDeleted", "DeletedTime" };#>
<# foreach(DbColumn column in DbHelper.GetDbColumns(config.ConnectionString, config.DbDatabase, tableName)){ #>
<# if (!excludedColumns.Contains(column.ColumnName)){ #>
- [Description("<#= column.Remark == "" ? "" : column.Remark.Replace("\r\n"," ") #>")]
+ [Comment("<#= column.Remark == "" ? "" : column.Remark.Replace("\r\n"," ") #>")]
public <#= column.CSharpType#><# if(column.CommonType.IsValueType && column.IsNullable){#>?<#}#> <#=column.ColumnName#> { get; set; }
<#}#>
<#}#>