How to detect collection changes in NHibernate
问题 How can I detect changes (additions and removals) from many to many sets and lists in NHibernate? I'm using an interceptor to detect changes in the object model (for auditing and more), this works great for changes within object (using OnSave/OnFlushDirty) but not for collections. When a collection changes the OnCollectionUpdate method is called but it only receives the key of the object holding the collection and the collection's latest items. What I need is: the object holding the