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

Dynamic connection DBCONTEXT

$
0
0

I want to pass the connection string to the constructor of the dbcontext to have the possibility to switch database per user. But using this dbcontext in the add-migration results in nullpointer on the connectionstring. How can I pass the connectionstring dynamically to the add-migration logic? 

Or is there a better way to implement this functionallity


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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