There no longer seems to be a method GetInvalidValues on the ValidatorEngine class, instead it is on the IClassValidator interface, therefore
ValidatorEngine validator = new ValidatorEngine();
InvalidValue[] validationMessages = validator.GetInvalidValues(customer);
becomes
ClassValidator classValidator= new ClassValidator(customer.GetType());
InvalidValue[] validationMessages = classValidator.GetInvalidValues(customer);
Is there any additional information on MyBeanConstraint? You mention you would discuss later but I don't see anything. Specifically, I am hoping there is functionality to manage domain level validation - ie: the last name of a person must be unique, etc.
Are you talking to the site? :-)
Here you've an example:
nhcontrib.svn.sourceforge.net/.../AssertAnimalAttribute.cs
nhcontrib.svn.sourceforge.net/.../Suricato.cs
nhcontrib.svn.sourceforge.net/.../Suricato.nhv.xml
nhcontrib.svn.sourceforge.net/.../Animal.cs
One thing that seems to not be very well documented is the IMessageInterpolator. If you could provide a working example along the lines of this question stackoverflow.com/.../nhibernate-validator-custom-imessageinterpolator it would be very helpful.
I have the following setup and things work well. But I want to check and see how localization is holding up. Can anyone tell me how to make my setup think I am French so i will get the default french validation messages? Thanks for the help.
var nhvc = new NHVConfiguration();
nhvc.Properties[NHVC.Environment.ValidatorMode] = "UseAttribute";
nhvc.Properties[NHVC.Environment.AutoregisterListeners] = "true";
nhvc.Mappings.Add(new NHVC.MappingConfiguration("Server.Domain", null));
validator.Configure(nhvc);
//Registering of Listeners and DDL-applying here
ValidatorInitializer.Initialize(cfg, validator);