优化代码生成&新增默认值处理
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user