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

New Post: Using Fluent Validation to Validate String Instances

$
0
0

Hi All,

I want to know if it is possible to use Fluent Validation to validate string instances directly rather than validating them through class properties.

I want to do something like this txtName.Text.NotEmpty().WithMessage("Name cannot be empty");

 

Any help would be much appreciated!

Best Regards,

Afraz Ali


Viewing all articles
Browse latest Browse all 1917


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