Nevermind, the session manager has a setter on the validator engine, so I used loquious configuration using the above code and just set it.
On Oct 21, 1:34 pm, MattO <[email protected]> wrote: > s#harp architecture requires nHibernate validators to be configured > with XML files. Does anyone know what the equivalent XML file would > look like for this Fluent configuration: > > var provider = new NHibernateSharedEngineProvider(); > NHibernate.Validator.Cfg.Environment.SharedEngineProvider = provider; > _validatorEngine = > NHibernate.Validator.Cfg.Environment.SharedEngineProvider.GetEngine(); > var configure = new FluentConfiguration(); > configure > .Register(Assembly.GetExecutingAssembly().GetTypes().Where(t => > t.Namespace.Equals("ItemBankCoreNH.Validators")).ValidationDefinitions()) > .SettDefaultValidatorMode(ValidatorMode.UseExternal) > .IntegrateWithNHibernate.AvoidingListenersRegister(); > _validatorEngine.Configure(configure); > > Also, does anyone know why google groups specifically nhusers takes > FOREVER to load. It would be nice if nhusers was not on google groups > as it's slow as hell and mangles all my code postings. -- 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.
