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

New Post: Documentation: DisplayNameAttribute

$
0
0
I accidentally discovered this trying to create a PropertyNameResolver, but FluentValidation already check for System.ComponentModel.DisplayNameAttribute in properties and use that in error messages.

The documentation has no mention of this anywhere.

I think this should be documented as one of the simplest ways of customizing the PropertyName in error messages.

Viewing all articles
Browse latest Browse all 1917

Trending Articles



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