in src/dotnet/Rider.Plugins.EfCore/Migrations/MigrationsProvider.cs [29:44]
public IEnumerable<MigrationInfo> GetMigrations(IProject project, string dbContextFullName)
{
using (CompilationContextCookie.GetExplicitUniversalContextIfNotSet())
{
var foundMigrations = project
.GetPsiModules()
.SelectMany(module => module.FindInheritorsOf(EfCoreKnownTypeNames.MigrationBaseClass))
// To get around of multiple modules (multiple target frameworks)
.Distinct(migrationClass => migrationClass.GetClrName().FullName)
.TrySelect<IClass, MigrationInfo>(TryGetMigrationInfo)
.Where(m => m.DbContextClassFullName == dbContextFullName)
.ToList();
return foundMigrations;
}
}