Questions tagged [nhibernate-validator]

NHibernate Validator is a powerful and extensible framework to validate objects using the .Net Platform. It is intended to be used to implement multi-layered data validation, where constraints are expressed in a single place and checked in various different layers of the application.

56 questions
11
votes
4 answers

Which validation library for ASP.NET MVC?

I'm trying to decide what validation approach to take for a new ASP.NET MVC project. (And wow there are plenty of options!) The project uses NHibernate, so the first thing I considered was the NHibernate Validator (Because of tight integration with…
UpTheCreek
  • 31,444
  • 34
  • 152
  • 221
6
votes
1 answer

NHibernate Validator throws System.NotSupportedException after upgrading to 3.1

Has anyone encountered this? After upgrading to NHibernate 3.1, I am receiving the following exception from NHibernate Validator when running NUnit test cases: System.NotSupportedException : The invoked member is not supported in a dynamic…
cbp
  • 25,252
  • 29
  • 125
  • 205
5
votes
1 answer

upgrading NHibernate and NHibernate Validator w/ Nuget

As of the today, the Nuget release of NHibernate Validator is 1.3.1.4000 and says it has a dependency >= NHibernate 3.1.0.4000, which implies it should work with latest NHib 3.2. But NHib 3.2 now has its own ProxyFactory, so running the two gets the…
Berryl
  • 12,471
  • 22
  • 98
  • 182
5
votes
3 answers

fluentnhibernate and nhibernate validator version error

We have a project using FluentNibernate to map the entities. Now I need to add some format validation to these maps. For Nullable, Length and such we are currently using the mappings. I added NHibernate Validator to the project, but received a…
Thad
  • 1,518
  • 2
  • 21
  • 37
5
votes
2 answers

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…
DanP
  • 6,310
  • 4
  • 40
  • 68
4
votes
2 answers

xVal in MVC.NET with nHibernate.validator does not fire client validation

I have an ASP.NET MVC Project working with NHibernate and NHibernate.Validator and i'd like to use xVal 1.0 (most recent release). I Added the requested scripts to the project and referenced it in Site.Master: