How to detect if object was updated using Nhibernate?

Posted by Karel Frajtak on Stack Overflow See other posts from Stack Overflow or by Karel Frajtak
Published on 2010-05-17T11:09:43Z Indexed on 2010/05/19 9:40 UTC
Read the original article Hit count: 305

Filed under:
|
|
|
|

I need to find out how to perform some action (flush cache) when an object of type X is updated.

So when I save object of type Y, nothing is done, when I save unchanged object of type X nothing should happed, but when this object is changed and UPDATE is made, I want to know it.

I tried various NHibernate events (IPostUpdateEventListener, IFlushEntityEventListener, etc.) but did not succeed.

Can anybody help please? Thanks

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about update