asp.net-mvcnhibernatenhibernate-validator

NHibernate Validator and ASP.NET MVC 4


We're looking at upgrading a large-scale project currently implemented using ASP.NET MVC 2 with xVal providing the glue between NHibernate Validator and client-side validation.

When I was looking for resources on using the new "unobtrusive" client side validation used in MVC 3/4 with NHibernate Validator, I was only able to locate a single (and nearly 3 year-old) blog post about this.

Has anyone successfully used NHibernate Validator for client-side validation in MVC 3/4? If so, what has your experience been?


Solution

  • Although I don't have any experience directly with NHibernate, FluentValidation (a validation framework worth considering itself) has an MVC 3/4 adapter extension project which would serve as an excellent guide to creating an NHibernate Validator implementation.