Recommended way of building an MVVM WPF app using EF

Apr 3, 2012 at 7:02 PM

Hi Tony, thanks a lot for your wonderful work. I found it really helpful. I'm new to your framework though(coming from nRoute and mvvm light) and want to know your recommended way for building an mvvm wpf app using EF classes as models considering the fact that EF classes neither implement INotifyPropertyChanged nor IEditableObject. I want a little advice on how to implement a real-world WPF similar to your RIA template. Do you implement a viewmodel consisting of mainly CRUD commands and ObservableCollections or do implement a detailviewmodel, re-implementing the properties, etc.


Apr 3, 2012 at 9:12 PM

A little clarification: I'm using EF generated classes as my models, if i expose the model as a property from my viewmodel and bind to those i won't get change notification so i can't use it as my model and that is the crux of the matter.