Mid EF Core

How to handle migrations when you have multiple DbContext in your solution?

  • Use separate migration folders per DbContext via the -Context option in

Add-Migration.

  • Maintain separate migration history tables using MigrationsHistoryTable

method.

  • Apply migrations independently for each DbContext.

More from Entity Framework Core Tutorial

All questions for this course