NHibernate property change tracking -
what best way implement property change tracking nhibernate. i'm migrating application linq-to-sql , implementing in entity so.
public class task { partial void onloaded() { originaltitle = title; } public bool originaltitle { get; private set; } public bool titlechanged { { return title != originaltitle; } } }
however, there onloaded event method in nhibernate. there way code auto-generated somehow?
you can try session event listener: http://www.nhforge.org/doc/nh/en/index.html#events
Comments
Post a Comment