The easiest way to do it is to create an event listener that implements IPreUpdateEventListener and IPreInsertEventListener.
Remember you have to update both the State and the Entity. Here is a good article to help you out: http://ferventcoder.com/archive/2009/11/18/nhibernate-event-listener-registration-with-fluent-nhibernate.aspx <http://ferventcoder.com/archive/2009/11/18/nhibernate-event-listener-registration-with-fluent-nhibernate.aspx>Hope that helps! - Robert On Wed, Apr 7, 2010 at 8:02 AM, Marcio <[email protected]> wrote: > I wonder how do I register a EventListeners to generate audit of my > classes. Ja built my class to record changes of inheriting > IPostUpdateEventListener but as I record it as a EventListeners. > > Sorry for the mistakes do not speak or write English fluently. > > Marcio. > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
