Hi,

I have an application that connects to more than one database using 
different ISessionFactory instances with different NHibernate Validation 
rules for each one of them (using xml files for configuration). 

The provided ValidatePreInsertEventListener and 
ValidatePreUpdateEventListener use an instance of ISharedEngineProvider to 
obtain the ValidatorEngine instance. I cannot find a way to provide a 
different ValidatorEngine instance when GetEngine() is called since there 
in nothing in the context that indicates the session factory being used.

Does NHibernate.Validator supports such a setup (application with more than 
one database (ISessionFactory) with different set of validation rules for 
the same entities) ? 

Thanks,

RJB

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/z-Ow7OS9CF0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to