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 lifetime.
Looking at the release notes for EF Core 5.0 preview 7, it looks like the team have implemented a AddDbContextFactory and AddPooledDbContextFactory. Will EF Core 5.0 make this library obsolete?
I'd note that even if EF Core 5.0 does support this, I think it'd still be nice to have this NuGet package for those who can't upgrade to EF Core 5.0 because it doesn't support .NET Standard 2.0
Looking at the release notes for EF Core 5.0 preview 7, it looks like the team have implemented a
AddDbContextFactory
andAddPooledDbContextFactory
. Will EF Core 5.0 make this library obsolete?