Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
想知道如果我正在使用集成 3 层(业务逻辑、持久性、域)的 MVC 3 项目,我应该将 DbContext 实现放在哪一层项目中
它应该直接在 MVC 3 项目中吗?还是坚持?
谢谢。
Persistence,因为它负责将数据持久化到数据库中。
如果它不属于那里,那是什么?