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

New Post: More than one type of error message (ex: long and short)

$
0
0
Hi

This isn't something that FluentValidation supports. However, you can associate any arbitrary piece of data with a validationfailure, using the WIthState method, which is then exposed on the failure via the CustomState property. It's possible that you can use this to store the additional message, providing you're not already using it to store something else.

Jeremy

Viewing all articles
Browse latest Browse all 1917

Latest Images

Trending Articles



Latest Images

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