I'm in a situation where I am being informed from an outside source that a particular entity has been altered outside my current datacontext. I'm able to find the entity and call refresh like so
MyDataContext.Refresh(RefreshMode.OverwriteCurrentValues, myEntity);
and the properties which have been altered on the entity are updated correctly. However neither of the INotifyPropertyChanging INotifyPropertyChanged appear to be raised when the refresh occurs and this leaves my UI displaying incorrect information.
I'm aware that Refresh() fails to use the correct property getters and setters on the entity to raise the change notification events, but perhaps there is another way to accomplish the same thing?
Am I doing something wrong? Is there a better method than Refresh? If Refresh is the only option, does anyone have a work around?