c# - How to raise an event on Property Change? -


when use dataset, there possiblity raise events on rowchanging, rowchanged, columnchanging, columnchanged, etc...

how same entity entity framework ?

entities implement propertychanged event since implement system.componentmodel.inotifypropertychanged. if want catch changes entieis, can subscribe that.

also note entities support following 2 partial methods—the second of should give equivalent of "rowchanging"—that can override if you'd respond changes within class:

protected override void onpropertychanged(string property) {}  protected override void onpropertychanging(string property) {} 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -