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

New Post: SetValidator not working

$
0
0

Hi Jeremy,

We have many ViewModels that share many of the same properties (FirstName, Email, etc.). We would like to have re-usable validations for such properties in order to apply kind of a DRY approach to validation logic.

First of all, is this a good idea in your opinion?

And secondly, will we loose client side validation if we use extention methods that contains only rules that are executed on the client side (kind of your EnsureValidCulture sample above)?

Thanks

--Mike


Viewing all articles
Browse latest Browse all 1917

Trending Articles



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