In our system it has become required to provide a multi-tenant solution, where each tenant has the same data structure.
During investigation I came across an article discussing multi-tenancy with EF4.1.
http://romiller.com/2011/05/23/ef-4-1-multi-tenant-with-code-first/
This looks like a sensible solution, but we would prefer to avoid multiple database contexts if possible.
Also, we have a large number of migrations for our current single tenant solution. With EF6, it is possible for a migration to target a specific context and when none is supported, a default is targeted.
I have a couple of quesions here:
Any help is much appreciated!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With