With EF.DbContextFactory you can resolve easily your DbContext dependencies in a safe way injecting a factory instead of an instance itself, enabling you to work in multi-thread contexts with Entity Framework or just work safest with DbContext following the Microsoft recommendations about the DbContext lifecycle.
Install-Package EFCore.DbContextFactory -Version 1.0.2
dotnet add package EFCore.DbContextFactory --version 1.0.2
<PackageReference Include="EFCore.DbContextFactory" Version="1.0.2" />
paket add EFCore.DbContextFactory --version 1.0.2
This package is not used by any popular GitHub repositories.