修改模板
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-11-07 18:09:38 +08:00
parent aae8afd0c5
commit 760321f8fa
8 changed files with 306 additions and 198 deletions
@@ -87,13 +87,13 @@ public partial class <#= EntityType.Name #>: BaseFullAuditEntity
{
var maxLength = property.GetMaxLength();
if (maxLength.HasValue && maxLength != 200) // 仅当长度不为200时生成[StringLength]
if (maxLength.HasValue && maxLength != 400) // 仅当长度不为200时生成[StringLength]
{
#>
[StringLength(<#= maxLength.Value #>)]
<#
}
else if(maxLength.HasValue && maxLength == 200){}
else if(maxLength.HasValue && maxLength == 400){}
else
{
#>