How to solve the problem of hundreds POCO Models without implementation of INotifyPropertyChanged and other WPF stuffs using the most efficient way to provide these functionality to WPF?
Right now I use EntityFramework with simple POCO classes and ViewModels written by hand.
My architecture looks like this:
- View
- ViewModel
- Repository pattern
- WCF repository or DB repository
- Business logic
- Entity Framework
- POCO model classes
My thoughts about that are:
- Use Automapper to map POCO classes to ViewModels classes and before that create these ViewModels manually.
- Generate base ViewModels using T4 as a wrap on generated before POCO classes, write my own (or use existing solution) of Instance resolver class to provide the same functionality (one instance = one record in database) in EF.
I'm confused, because I don't like my own solution, it's not stable now, but Automapper use Reflection in mappings.
What to do? Do you know some fantastic, really great tool to do this magic things and gives me a flexibility to add and extend ViewModel?