in src/dotnet/Rider.Plugins.EfCore/DbContext/DbContextProvider.cs [16:30]
public IEnumerable<DbContextInfo> GetDbContexts(IProject project)
{
using (CompilationContextCookie.GetExplicitUniversalContextIfNotSet())
{
var foundDbContexts = project
.GetPsiModules()
.SelectMany(module => module.FindInheritorsOf(EfCoreKnownTypeNames.DbContextBaseClass))
// To get around of multiple modules (multiple target frameworks)
.Distinct(dbContextClass => dbContextClass.GetClrName().FullName)
.TrySelect<IClass, DbContextInfo>(TryGetDbContextInfo)
.ToList();
return foundDbContexts;
}
}