c# - Who get Access to the Database in MVVM Pattern -
After reading many articles about this, I still do not really know how the best solution can look. / P>
Some should tell me the And does it also depend on the way it actually connects to my database? Does any general rule do not know which database should you get access to? You should split your application into layers You should keep a clear fragmentation between your UI and data. There are several differences on this setup. ViewModel and
model should get access to the database telling me that only
models should be accessed .
If I want to use a repository then both of them can actually access it
and if I want to use EF then now only "models" are able to do database interaction?
Comments
Post a Comment