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.
我目前正在使用 ASP.Net MVC 3 开发一个 Web 应用程序。
我的解决方案中有这个结构:
只是想知道这是否正确,我的数据访问层和业务逻辑层位于不同的项目中。
只要您的应用程序层是松散耦合的(例如通过使用接口/依赖注入/等),它们就可以在同一个项目中。
但是,是的,将它们拆分为单独的项目是常见的做法,并且从长远来看可能更易于维护和扩展。