Hi! Tnx for answering! I read a blog post about this regarding fluentNH.
http://bezieur.wordpress.com/2009/01/21/fluent-nhibernate-with-burrow/ In order to write some test for this: - If I got it correct this .IntegrateWithNHibernate.ApplyingDDLConstraints will apply constraints like notnull, length and even unique,index, unique-key? - Two listeners will be attached for the events preupdate and preinsert? Another question: Are there any plans of updating burrows for latests nh? I have done it locally, but I am not a commiter yet. Is there some docs of how to comit to these excellent projects? On 14 Apr, 23:11, Dario Quintana <[email protected]> wrote: > 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 Quintanahttp://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 -~----------~----~----~----~------~----~------~--~---
