Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Change Connection String whilst App is running

$
0
0

Hi all,

I have a requirement to select different databases from a drop down list in an app which would then populate the active database connection string. Is this possible in Asp Core? If so does anyone have any suggestions how I might achieve this?

I have thought about writing the updated conn string to a "dynamic" appsettings file but I think I would need to restart the app for this to be read.

Thanks,

Jus


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>