We don't have any specific support for listeners, but you should just be able to set them on the NH config as usual. If you're using Fluently.Configure then you'll be able to do it in the ExposeConfiguration method, or pass in a pre-prepared Cfg to Configure, or called BuildConfiguration instead of BuildSessionFactory and tweak it after... so much choice.
On Tue, Aug 18, 2009 at 8:09 PM, Erik Burger <[email protected]> wrote: > > Hi, > > I have a class that has a property UniqueId I would like to have > persisted to the database. UniqueId is calculated by using the class' > GetHashCode function and used at a later stage to perform existence/ > duplicate checking before saving other instances of my class (hence > the need for it to be persistent and not transient). > > In 'normal' NHibernate I could use the event/listener support. How > could I do the same in FluentNH? > > It'd be pretty neat to be able to do something like Map( e => > e.UniqueId).OnSave( <callback> ) but that's just me thinking out loud > (which I've been told -repeatedly- I should not do ;) > > Thanks, > > Erik > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
