How to make Must() run only when the current property is valid

后端 未结 0 1274
故里飘歌
故里飘歌 2020-12-03 05:16

Considering this rule:

RuleFor(account => account.Email)
    .NotEmpty()
    .WithMessage("The e-mail is required.")
    .EmailAddress()
    .Wit         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题