Should the connection string come from an mvc project or data project?

When using a separate project to handle db operations in an mvc project, should you save the connection string in dbproject (using app.config) or save the connection string in the web.config file of the mvc project and enter it in the repository (provided by dbproject) when you create it?

+1
source share
1 answer

The configuration is always read from an external application. Web.config is where your connection string should be.

db , . - .

+7

Source: https://habr.com/ru/post/1523851/


All Articles