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; } <#}#> <#}#>