Where should i put the DbContext?
-
28-10-2019 - |
문제
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.
해결책
Persistence, as it's responsible for persisting the data to the database.
If it doesn't belong there, what does?
제휴하지 않습니다 StackOverflow