c# - EF object property changing - MVVM -


I have a view model in which EF is an object because one of its properties is the number of text boxes in the view to that property Wired by text = "{binding path = myEFTable.Column1}" . I am using the MVVM Light Toolkit so that my view modules inherit the Warhambasebase and after each property call RaisePropertyChanged () has been changed.

I have seen, although this is changing, MyEFTable column 1 does not set any change in view-model. I thought EF objects tracked any change, so I have assumed that changing the column value in the EF object would have to change the EF object itself. Does it now track changes because I'm essentially copying the query result to a new MyEFTable object?

Do your obligations apply INOTifyPropertyChanged or is it container, such as ObservableCollection? Are you growing this event?

The use of a visual model is just the beginning. You should first see whether the column 1 property is being updated after editing. If a text box, UpdateSourceTrigger is the default value of LostFocus, you may change the property to change it. If the price has been updated to your MyEFTable.Column1, you have done so. If not, again, some are using INotifyPropertyChange.

Add more information and maybe this problem will be obvious.

HTH

Comments