From: Fabio M. (JIRA) <nh...@gm...> - 2011-05-30 14:07:49
|
[ http://216.121.112.228/browse/NH-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fabio Maulo updated NH-2750: ---------------------------- Affects Version/s: (was: 3.2.0Beta2) (was: 3.2.0Beta1) (was: 3.2.0Alpha3) (was: 3.2.0Alpha2) (was: 3.2.0Alpha1) 3.1.0 > NHibernate Listeners Configuration Improvement > ---------------------------------------------- > > Key: NH-2750 > URL: http://216.121.112.228/browse/NH-2750 > Project: NHibernate > Issue Type: Improvement > Components: Core > Affects Versions: 3.1.0 > Reporter: Stefan Sedich > Assignee: Steve Bohlen > Attachments: lambda-listeners.patch > > > I was looking at the new configuration (which I do quite like) in NH 3.2, but noticed the lambda based configuration does not > allow a nice way to configure listeners, I have created a patch fort his and attached it to the email, the new configuration would now be possible like so: > new Configuration() > .DataBaseIntegration(db => > { > db.Dialect<MsSql2000Dialect>(); > db.BatchSize = 15; > }) > .Listeners(l => > { > l.AppendListener(ListenerType.Load, new FooListener()); > }); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |