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

New Post: Using Fluent Validation in editor templates

$
0
0

Hi

FluentValidation is only used for declaring validation rules - it does not integrate with MVC's concept of model metadata as it is out of scope for this project. If you wanted the IsRequired property to automatically set when you declare an IsNull rule then you'd need to create a custom implementation of MVC's MetadataProvider that knows how to interrogate validation rules and search for an IsNull rule property.

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>