I think it's. IConfigurator is a request I did to Kailuo in order to intercept the configuration for this kind of stuff.
On Tue, Apr 14, 2009 at 10:23 AM, cws <[email protected]> wrote: > > Hi! > > Trying to configure a Nhibernate project using Burrows and fluent- > Validator. > > I do this like this > > public class NHibernateMapping : IConfigurator > { > > #region IConfigurator Members > > public virtual void Config(IBurrowConfig val) > { > } > > > public virtual void Config(IPersistenceUnitCfg puCfg, > Configuration nhCfg) > { > ValidatorEngine ve = > NHibernate.Validator.Cfg.Environment.SharedEngineProvider.GetEngine(); > > var configure = new FluentConfiguration(); > string assembly = "Skolplatsen.BLL"; > configure.Register( > Assembly.Load(assembly) > .ValidationDefinitions() > .Where(t => t.Namespace.Equals(string.Format > ("{0}.Validators", assembly))) > ) > configure > .SetDefaultValidatorMode > (ValidatorMode.UseExternal).SetMessageInterpolator<MessageInterpolator> > () > .IntegrateWithNHibernate.ApplyingDDLConstraints > ().And.RegisteringListeners(); > ve.Configure(configure); > } > > Using burrow's customconfigurator and own sharedengine. Is this the > right way to set it up? > > > > > -- Dario Quintana http://darioquintana.com.ar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
