I need to configure my application so that depending on a client it is connected to one database or another. Any idea how to do it?
Asked
Active
Viewed 75 times
0
-
I assume that you mean dynamically when the site is running. See [Dynamically change connection string in Asp.Net Core](https://stackoverflow.com/questions/36816215/dynamically-change-connection-string-in-asp-net-core) for some suggestions. – Mark G May 10 '18 at 17:33
-
Maybe this is useful https://stackoverflow.com/questions/40836102/asp-net-core-change-ef-connection-string-when-user-logs-in/40840797#40840797 – H. Herzl May 11 '18 at 18:22