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

New Post: Setting child collection properties validation result based on parent

$
0
0
Yes, you would have to write a separate custom call.

Although this means you wouldn't get as much use from the FluentValidation validators, you need to evaluate where FluentValidation is actually adding benefit, or where trying to make it fit with your rule just adds additional complexity (the same is true for any framework/library). Personally, if I have a rule that I'm finding too complex to implement in FluentValidation then I have no qualms in bypassing FV and writing the validation logic manually...use whatever is simpler in your particular scenario.

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>