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

New Comment on "CreatingAValidator"

$
0
0
RuleFor(x => x.Orders).SetCollectionValidator(new OrderValidator()) .Where(x => x.Cost != null); Is that means only set validator for orders which cost is not null? if so, move 'Where' statement in front may be a better choice?

Viewing all articles
Browse latest Browse all 1917

Trending Articles



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