Where should i put the DbContext?
-
28-10-2019 - |
Question
Was wondering in which layer project i should put the DbContext implementation if i am working with an MVC 3 project which integrate 3 layers ( BusinessLogic, Persistence, Domain)
Should it be directly in the MVC 3 project ? or in persistence ?
Thanks.
Solution
Persistence, as it's responsible for persisting the data to the database.
If it doesn't belong there, what does?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow