I used both in production projects, and if you have time to make the switch, I would highly recommend NHibernate.Validator for two reasons:
- NHibernate.Validators has a richer set of validation attributes (for example, a handful of you mentioned above)
- If performed correctly, NHibernate.Validators validation is easier than unit test.
. 1 , , , , DataAnnotations (, , RegEx), . 2 , , UI/Web- WatiN Selenium. Validators ( X OR Y , ), .
Validators Validator . : http://nhibernate.info/blog/2009/04/02/nhibernate-validator-and-asp-net-mvc.html, S # arp, Billy McCafferty ASP.NET MVC DDD. , Validators Validator ModelBinder, NHibernate MVC ModelErrors. S arpArchitecture : http://github.com/codai/Sharp-Architecture.
: NHibernate.Validators , , , . DataAnnotations , .
, .