Hi Filip.. I modified your example adding a "ModifiedBy" property which is a Many-To-One relationship, I did this to answer the "bizzare" thread. OTOH; in my branch i have enabled logging.. if you run your tests you will see than there is an extra-superflous update when doing only inserts, To fix this, i believe you have to implement ISaveOrUpdateEventListener in the same listener, call the same function and add the listener to the configuration just as you did the other one.
The listener i have added for doing the User thing already has this. Note that i am calling SaveOrUpdate instead or Save in my tests. I hope you can merge my pull request. 2011/5/11 Filip Kinsky <[email protected]> > fully working IFlushEntityEventListener can be found here: > https://github.com/Buthrakaur/NHListenerTests/blob/master/NHListenerTest/SetModificationTimeFlushEntityEventListener.cs > > -- > 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. > -- 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.
