2012/11/29 Richard Wilde <[email protected]>: > Hi > > > > I want to run some additional code AFTER a successful save (insert) to a > couple of entities after a successful commit. I use a session per request > strategy which is wrapped up as UOW. > > I have Googled around a bit and have come up with the following idea. > > > > 1. OnSave add the saved entities to a temporary list > > 2. PostFlush enumerate through the saved list and run the extra code. >
I suspect this might not catch entities persisted by cascade. Have you had a look at the event listeners feature? /Oskar -- 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.
