优化代码

This commit is contained in:
不做码农
2021-11-22 17:30:18 +08:00
parent 7b06d3a844
commit fa86af4fbf
2 changed files with 6 additions and 1 deletions

View File

@@ -88,6 +88,10 @@ namespace ZR.CodeGenerator
{
return InputDtoContent;
}
else if (dbFieldInfo.HtmlType == GenConstants.HTML_DATETIME)
{
return InputDtoContent;
}
else if (dbFieldInfo.IsInsert || dbFieldInfo.IsEdit || dbFieldInfo.IsPk || dbFieldInfo.IsIncrement)
{
InputDtoContent += $" public {dbFieldInfo.CsharpType}{GetModelRequired(dbFieldInfo)} {dbFieldInfo.CsharpField} {{ get; set; }}\r\n";