vany0114 / EF.DbContextFactory

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.
http://elvanydev.com/EF-DbContextFactory/
MIT License
93 stars 21 forks source link

[Question] Will EF Core 5.0 make this library obsolete? #31

Open Meberem opened 4 years ago

Meberem commented 4 years ago

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?

Eli-Black-Work commented 4 years ago

Good question! :)

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