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

New Post: Best practices to invoke validate

$
0
0
It's completely up to you for whatever makes most sense in your scenario. Personally I use it at the view-model level - once my view-model has been populated based on user input, then I use FluentValidation to validate this. I personally don't use it to validate in the 'business layer'. If using MVC then I use the automatic integration, and don't call the validate method directly.

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>