Skip to content

An example .NET console application that executes pending Entity Framework Core (EF Core) migrations to configured tenant databases.

Notifications You must be signed in to change notification settings

chadgolden1/MultiTenantEfCoreMigrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MultiTenantEFCoreMigrator

An example net6.0 console application that executes pending Entity Framework Core (EF Core) migrations to configured tenant databases.

Remarks

This is useful for efficiently executing migrations in multi-tenanted scenarios where each tenant has its own connection string/database as part of a shared DbContext.

It offers a way to execute migrations in code as opposed to using the PowerShell module or dotnet ef tool. This approach could be used within CI/CD pipelines.

Uses Task's to run migrations concurrently - much faster than serial execution

About

An example .NET console application that executes pending Entity Framework Core (EF Core) migrations to configured tenant databases.

Resources

Stars

Watchers

Forks

Languages