Not completely sure, but I suspect that it may be because you're
accessing the existing session from the listener - what happens if you
use a new session
[@event.Session.GetSession(EntityMode.Poco).Save(logItem)]?

 

See
http://stackoverflow.com/questions/3708143/nhibernate-auditing-postinser
t-not-working

 

/Pete

 

From: [email protected] [mailto:[email protected]] On
Behalf Of sebi
Sent: 10 May 2013 08:14
To: [email protected]
Subject: [nhusers] Re: IPostInsertEventListener : Insert executed
multiple times

 

Unfortunately, I have to revise my last statement. Changing the
Generator to Native shifts the problem. After this change, the amount of
changelog entries is too high.

Please see the attached sample project.

 

-- 
You received this message because you are subscribed to the Google
Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to