I have a .NET solution containing two projects:
- An ASP.NET MVC project, 'Website'
- A class library, 'Models'
The 'Models' project contains a Linq-to-SQL data-context along with a few partial classes that extend the database objects.
The connection string is defined in the web.config of the 'Website' project.
However the 'Models' project seems to have its own app.config where the database connection is defined separately.
This means that if the connection string changes, I'll have to update both projects.
Is there a way I can centralize the connection string to one place, and still have both projects use it?