优化代码生成&新增默认值处理

This commit is contained in:
不做码农
2023-02-17 11:02:27 +08:00
parent a51c85fcad
commit c7582e62ed
15 changed files with 128 additions and 75 deletions

View File

@@ -79,6 +79,10 @@ namespace ZR.CodeGenerator
{
replaceDto.SelectMulti = 1;
}
if (dbFieldInfo.HtmlType.Equals(GenConstants.HTML_EDITOR))
{
replaceDto.ShowEditor = 1;
}
dbFieldInfo.CsharpFieldFl = dbFieldInfo.CsharpField.FirstLowerCase();
}

View File

@@ -60,5 +60,9 @@ namespace ZR.CodeGenerator.Model
public int SelectMulti { get; set; }
public string Author { get; set; }
public string AddTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd");
/// <summary>
/// 是否有编辑器
/// </summary>
public int ShowEditor { get; set; }
}
}