优化代码生成模板

This commit is contained in:
不做码农
2022-05-22 18:07:33 +08:00
parent c2123c2584
commit 956b496fa0
4 changed files with 32 additions and 52 deletions

View File

@@ -114,6 +114,17 @@ namespace ZR.Model.System.Generate
/// </summary>
[SugarColumn(IsIgnore = true)]
public string CsharpFieldFl { get; set; }
/// <summary>
/// 前端 只读字段
/// </summary>
[SugarColumn(IsIgnore = true)]
public string DisabledStr
{
get
{
return (((!IsInsert && !IsEdit) || IsPk) && !IsRequired) ? " :disabled=\"true\"" : "";
}
}
#endregion
}