We have a database where all connection strings are saved in a table. I need to use these connection strings to obtain data in their respective database. I can do it running queries but I want to use Linq and EF. How can I do it?
Thanks a lot.
Let me rephrase again, I am having access to database which will have a table containing multiple connection strings. I want to map database at runtime and then use it to retrieve the data. Is it possible?
It is not possible to map database at runtime. It will work only if your application knows mapping for every database and has all necessary classes prepared = you will have to create it in design time.