NHibernate Validator provides data validation for classes. In this recipe, we will show you how to use NHibernate Validator attributes to validate your entities.
Eg.Core model and mappings from Chapter 2, Models and Mappings.
Eg.Coremodel and mappings from Chapter 2, Models and Mappings to this new project.
Install-Package NHibernate.Validator ...