I have a quite simple question, but I am not able to connect the two. I have been studying MVVM and understand it pretty good for the most part. The one thing that I am still having a disconnect is how do you translate the property change of the model to the data storage.
My thought is that you hand this change of the data in the property handler, for example.
public string Name { get { return name; } set { name = value; UpdateDataStore(SongProperties.Name, value); } }
This is the method to handle the update:
public void UpdateDataStore(SongProperties property, object value) { //Update Data Store here. //For example, call the update method of a service to pass the updated data }
Is this the proper way to accomplish this task, is there a standard for accomplishing the updating of a data store?
Robert Johnston