EF6 POCO INotifyPropertyChanged without viewmodels

entity-framework-6 inotifypropertychanged poco wpf

Question

I have been directly binding to the model classes in my WPF application (and skipping creating individual viewmodel classes).

Now that I've switched to EF6 and DBContext, I'm having trouble with the created EF POCO classes because it appears to be difficult or even discouraged to try to implement the INotifyPropertyChanged interface directly into those classes.

Currently:

  • I'm not interested in returning to ObjectContext.
  • I also don't want to alter T4 too much. I find the online suggestions for modifying T4 to accomplish INotifyPropertyChanged to be far too error-prone.
  • The best option right now would probably be to create viewmodels for each class and switch exclusively to MVVM, but doing so would take a long time because the model is so large.

Do I still have any alternatives for getting the autogenerated attributes for the EF6 POCO class to inform me of their changes?

1
3
9/16/2014 6:23:25 AM

Popular Answer

ZZZ_tmp
0
9/16/2014 8:12:53 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow