Fluent Validation with ASP.NET MVC

added by Grishma Govani
5/29/2013 6:17:27 AM


Out of the box, ASP.Net MVC provides a web application Data Annotations validation. Data Annotations uses a attribute based approach to mark models with rules. For simple validation Data Annotations can be enough. Data Annotations can be extended, but can be complex to do so and can feel at times very awkward. This post will show you how to switch out Data Annotations and how simple it can be to write complex validation rules.