Sep 20, 2012 at 9:03 AM
Edited Sep 20, 2012 at 9:37 AM
Again, As I said this is relate to WPF but I employ your pattern. I wonder about MVVM plus new EF and because of there's no MVVM plus EF pattern form Microsoft.
My meantion are the MVVM plus EF doesn't clear enought from Micosoft. I could not got any ideas from WPF forums. I don't want to post this again at WPF forum.
1. Q If we call the helper mothods.
you can see there's 2 of Using<T>(Actually more with real work) above. If I execute the commnads twice or more. Are we invoke the same DbContext and query the same data or Invoke new instance of DbContext, each time when we execute?
the Entities's state lives at Data Access layer. These are the entities's states 1.Added, 2.Modified, 3.Deleted, 4.Detached
How do I track these stats at ViewModels?
How do I track these entities at ViewModels? when underlying data get changed then reflect UI to update or INotityPropertyChanged.
As you know we have 2 layer separate between DAL and BLL.
Could yu give me some suggustion how to archive this kind of pattern?
Please...My the teacher and you re really good teacher.