Mark migrations in the output of GetAppliedMigrations() if they are not associated with the current context
Open
area-migrations
customer-reported
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
I have multiple contexts for represent my Entities in DB.
I have some migrations per context.
**_context.Database.GetAppliedMigrations();_** method returns applied migration for entire DB and not per context (seems to be all contexts with same db schema).
Note:
**_context.Database.GetPendingMigrations();_** -- correct behavior per context
**_context.Database.GetMigrations()_** -- correct behavior per context
EF Core version: 5.0.11
Database provider: Microsoft.EntityFrameworkCore.SqlServer 5.0.11
.NET core 3.1
Operating system: Windows 10 entreprise
Visual Studio 2019 16.11.3)
Contributor guide
Assessment
This issue has not been assessed yet.