@@ -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
|
||||
{
|
||||
#>
|
||||
|
||||
Reference in New Issue
Block a user