I have the following Problem. I'm using Entity Framework 6 and i want to be able to change the used database on runtime or atleast I want to be able to check connection information when entered in the Options. My problem is that we want to support MySql and LocalDB v12.0 so simple exchanging the connections string doesn't help here - I have to exchange the ExecutionStrategy and the ConnectionFactory.

EF seems to lock down all configurations so I'm not able to change it on runtime, is there a workarround for this? For the moment I've tried to create several DbConfigurations and derive a context for each configuration with a definition of `[DbConfigurationType(typeof(LocalDbConfigruation))]`.

I expected this to fail, but i thougt it would be worth a try ;)

Maybe there is someone out there who can help me with some tipps and tricks.