Hi,
In a multi-tenancy setup with separate database for each tenant, how do we enable code-first migration for all tenant databases in the event we change the code? Currently i run the update-database on master but when i log into tenants, i will get the context changed error which is natural as tenant db is not updated.
Regards, Asrar
1 Answer(s)
-
0
Hi,
Actualy there a lot of similar question in forum. You could check them:
Hi,
Actualy there a lot of similar question in forum. You could check them:
<a class="postlink-local" href="https://forum.aspnetboilerplate.com/search.php?keywords=Migration+for+Tenant+Database&terms=all&author=&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search">search.php?keywords=Migration+for+Tenant+Database&terms=all&author=&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search</a>
<a class="postlink-local" href="https://forum.aspnetboilerplate.com/viewtopic.php?p=15394#p15394">viewtopic.php?p=15394#p15394</a>