I have 2 databases created by a migration
. When my project (Asp.net core 2.2) starts, it shows a view
that contains a dropdownlist
of database names. Now I want any database selected anytime to change the connection string to new database.
I can create 2 connection strings using this link. But I can`t get it to change the connection string at run time.
How can I change connection string at runtime?