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 EF.DbContextFactory.Unity -Version 1.0.1
dotnet add package EF.DbContextFactory.Unity --version 1.0.1
<PackageReference Include="EF.DbContextFactory.Unity" Version="1.0.1" />
paket add EF.DbContextFactory.Unity --version 1.0.1
This package is not used by any popular GitHub repositories.