Just one more thing, I initialized the validator using this code:

    private void InitializeValidator()
    {
      var provider = new NHibernateSharedEngineProvider();
      provider.GetEngine().Configure();
      NHibernate.Validator.Cfg.Environment.SharedEngineProvider =
provider;
    }


and this app.config tag:


  <nhv-configuration xmlns="urn:nhv-configuration-1.0">
    <property name='apply_to_ddl'>false</property>
    <property name='autoregister_listeners'>true</property>
    <property
name='default_validator_mode'>OverrideExternalWithAttribute</property>
<!--    <shared_engine_provider-->
<!--
class='NHibernate.Validator.Event.NHibernateSharedEngineProvider,
NHibernate.Validator'/>   -->
  </nhv-configuration>


-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
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