design patterns - Get list of changed fields in Entity from NHibernate Session -


I want to track changes to my domain model. I know that the NHibernate ISession unit is an implementation of the official format, Tracks these changes, for example, what is a way to remove them before committing () or flush ()?

Take a look at NHibernate's IInterceptor.

OnFlushDirty - will show you the properties to continue on an updated object.

You just need to create an interceptor class that implements this interface, and when you use your NHibernate session If you configure, then tell that to use that class.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -