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

New Post: SetValidator inside Custom abstract validation block

$
0
0

This isn't supported I'm afraid. 

SetValidator is used to assign a validator to a property as part of a rule chain. When you use Custom it bypasses this entirely. Personally I'd recommend avoiding the use of Custom unless you absolutely need it. In most cases you can use a 'Must' rule as part of a rule chain instead. 

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>