Hi,
How do I add a new entity object using NHibernate whilst handling a PostUpdateEvent event? I have implemented an audit handler which essentially creates a new object in the OnPostUpdate handler, and attempts to insert into the database.
However, it doesn't actually seem to get committed at any point. If I start a new transaction and commit that in the OnPostUpdate handler, it recurses and gives a stack overflow.
Any ideas?
Thanks,
Jim