If you know the MVVM template for WPF, then you know the Josh smith msdn article, where CustomerViewModel does not have a simple property, for example:
public string FirstName {get;set;}
Rather, the ViewModel wraps the model and delegates access to the resource as follows:
public string FirstName { get { return _customer.FirstName; } set { if (value == _customer.FirstName) return; _customer.FirstName = value; base.OnPropertyChanged("FirstName"); } }
I have not seen this in asp.net mvc. Is this due to the lack of an INotifyPropertyChanged interface?
I have not seen this in asp.net mvc
This is normal. You should not see him. MVC is a different template than MVVM. In MVC, no one should notify of any changes in the view. The MVVM template is not adapted to the statelessness of the website.
ViewModel Model MVVM , MVC
ViewModel
Model
MVVM ViewModel - , View . MVC View - , ViewModel , Controller .
View
Controller
. MVC M , , MVVM M .
M
, MVC M+C MVVM VM, MVC M MVVM M, VM
M+C
VM
INotifyPropertyChanged WPF . MVC, .
INotifyPropertyChanged