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.
See the version list below for details.
Install-Package EFCore.DbContextFactory -Version 1.0.0
dotnet add package EFCore.DbContextFactory --version 1.0.0
<PackageReference Include="EFCore.DbContextFactory" Version="1.0.0" />
paket add EFCore.DbContextFactory --version 1.0.0
This package is not used by any popular GitHub repositories.