I have a web application that comprises the following:
An MVC web project (with a web.config file containing a connection string - but no database access code in it)
A data access project (it is a class library, the dll of this project will be put into the above MVC project and accessing data in that) that uses LINQ-SQL classes.
What I need is I have a connection string in the web.config file of my MVC project. I have to write a function in the class library in such a way that the connection string in the app.config, settings.settings and in the dbml file should get modified according to the connection string in the MVC webcofig file. And the data should be taken from the db according to this connection..