Base solution for your next web application
Open Closed

Migration for Tenant Database #3052


User avatar
0
asrar created

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)
  • User Avatar
    0
    alirizaadiyahsi created

    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>

    #2903@94d32682-a29c-463b-a80f-c30c8ff51aa5