Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Adding Info to Message when using SetValidator on child Entity

$
0
0

I'm afraid that this isn't something that FluentValidation supports. The only way around this would be to declare all the rules in-line rather than making use of a child validator (eg RuleFor(x => x.Beneficiary.SomeProperty).NotNull().WithMessage("blah {0}", x => x.EventId)

Jeremy 


Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>