Click here to Skip to main content
15,662,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to create a multi-tenancy web application with Core and EF Core i.e. Separate SQL server Database per Tenant.

I have a question, during migration how to handle DB updates

i.e. if I have changed a model and added new fields or removed a field and want to update the database, do I have to update all databases for Tenants? or is there any workaround for that?

I have done RnD and found solutions, but I did not find this specific concern.

Any help or guiding material will be helpful.

What I have tried:

GitHub - gpeipman/AspNetCoreMultitenant: Multitenant ASP.NET Core application to serve as a starting point for real multitenant applications[^]
Updated 21-Sep-22 6:49am
Gerry Schmitz 1-Jun-21 3:52am    
One database, one view per tenant. As you've determined, multiple db's starts a cascade of issues. Volume should determine if partitioning is required; you're still at the "want to" stage.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900