Besides Linq to SQL, is something else consuming INotifyPropertyChanging?

Having never used it INotifyPropertyChanging, I was wondering if it uses anything other than Linq to SQL?

And if Linq to SQL is the only user, why does it INotifyPropertyChangingexist in System.ComponentModel?

http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanging.aspx

+2
source share
1 answer

According to Reflector;), INotifyPropertyChanging is used in Linq to SQL and its third-party counterparts (for example, Devart.Data.Linq) to optimize tracking changes in entities (delaying the snapshot of an object until the first change).

, X, DataContext X- ( ), INotifyPropertyChanging.

INotifyPropertyChanging X PropertyChangingEventHandlers. , DataContext .

, INotifyPropertyChanging , DataContext (Linq to Sql), .

INotifyPropertyChanging Weaver;)

+1

Source: https://habr.com/ru/post/1777947/


All Articles