You can detect updates by watching change notifications. Notifications are provided through PropertyChanging or PropertyChanged events in property installers.
eg. you can extend your generated class Ecs_TblUserAddresses as follows:
public partial class Ecs_TblUserAddresses { partial void OnCreated() { this.PropertyChanged += new PropertyChangedEventHandler(User_PropertyChanged); } protected void User_PropertyChanged(object sender, PropertyChangedEventArgs e) { string propertyName = e.PropertyName;
Alternatively, if you want to track the change of a special property, you can use one of those OnPropertyNameChanging partial methods, for example. (for the city in your example):
partial void OnCityChanging(string value) {
source share