How do I change connectionstring at runtime in EF7 Core?
<p>I am building system where each customer will have it's own database.
When a customer loggs in, I will use the domain name of the users email adress to decide what connectionstring it should use.</p>

<p>Today, the connectionstring is set in the startup.cs file but this is not going to work.</p>

<p>My question is this: 
What's the best way to implement a rule based connectionstring selection in EF Core?</p>

<p>After the user has logged in, that user should use the same Connection string during his/her entire session.</p>