Compare commits
No commits in common. "784e453eaa936479b8e554787c7b28ede3cf24e5" and "c03fd57c25cc12c823ddca5a46f323b7d2ddb92e" have entirely different histories.
784e453eaa
...
c03fd57c25
|
|
@ -67,8 +67,4 @@
|
|||
<Folder Include="TT_Template\Services_New\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" Version="8.0.8" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -39,18 +39,17 @@ 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
|
||||
{
|
||||
|
||||
[Comment("<#=tableName#>")]
|
||||
[Description("备注: <#=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)){ #>
|
||||
[Comment("<#= column.Remark == "" ? "" : column.Remark.Replace("\r\n"," ") #>")]
|
||||
[Description("<#= column.Remark == "" ? "" : column.Remark.Replace("\r\n"," ") #>")]
|
||||
public <#= column.CSharpType#><# if(column.CommonType.IsValueType && column.IsNullable){#>?<#}#> <#=column.ColumnName#> { get; set; }
|
||||
<#}#>
|
||||
<#}#>
|
||||
|
|
|
|||
Loading…
Reference in New Issue