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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -