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
Post a Comment