A
Andrus
I noticed that sqlmetal generated code in northwind.designer.cs implements
two interfaces:
public partial class Customer : INotifyPropertyChanging,
INotifyPropertyChanged {
public string CustomerID {
set {
....
this.SendPropertyChanging();
this._CustomerID = value;
this.SendPropertyChanged("CustomerID");
....
INotifyPropertyChanged alone allows to track changes well at property level.
Why they implemented also INotifyPropertyChanging ? INotifyPropertyChanging
allows to track changes only at entity level and does not even provide
changed property name.
Looks like junk code.
Andrus.
two interfaces:
public partial class Customer : INotifyPropertyChanging,
INotifyPropertyChanged {
public string CustomerID {
set {
....
this.SendPropertyChanging();
this._CustomerID = value;
this.SendPropertyChanged("CustomerID");
....
INotifyPropertyChanged alone allows to track changes well at property level.
Why they implemented also INotifyPropertyChanging ? INotifyPropertyChanging
allows to track changes only at entity level and does not even provide
changed property name.
Looks like junk code.
Andrus.