I'm working on a WinForm application. I've implemented data-access logic into a "library project" that I set as reference in my WinForm project. I'm using LINQ to SQL to connect to my project database, mapping the tables I use into a dbml file. Now I have to publish my project and change the connection string to point to the production DB.
Is it possible to change the connection string without re-compile the project? It'll be very useful at debug-time and for maintenance...
I've tried to change it in app.config and also in the Settings file, but it seems to still point to the development DB.
Where am I doing wrong?
settingsfile and also in theapp.configfile of my "data-access-project". I'd like to specify the connection string in the project that uses as reference this dll... is it possible?