We have to reference an EF connection string in a couple of places in a solution.
In our EF DataContext project its contained in the App.Config.
And in the WebApi project its contained in the Web.Config.
Now, from googling I can use 'add as link' to reference an App.config from another project, however, I (at least dont think I can) do this with the WebApi link being in the web.config.
As the devs are all using a local instance of the database currently and so with each push we are manually having to change in each location (i know its only a couple but still a bit of a pain).
If there any way we can pul it out to a single location? and also coul dwe maybe setup some kind of switch so I it will use the right string in each environment.
Thanks in advance.