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.
Learn Entity Framework Core: https://www.learnentityframeworkcore.com/
Entity Framework Core Tutorial: https://entityframeworkcore.com/
Entity Framework 6 Tutorial: https://entityframework.net/
Info
Version: | 1.0.1 |
Author(s): | Geovanny Alzate Sandoval, Alexey Borodenko |
Last Update: | Saturday, September 29, 2018 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/vany0114/EF.DbContextFactory |
NuGet Url: | https://www.nuget.org/packages/EF.DbContextFactory.SimpleInjector |
Install
Install-Package EF.DbContextFactory.SimpleInjector
dotnet add package EF.DbContextFactory.SimpleInjector
paket add EF.DbContextFactory.SimpleInjector
EF.DbContextFactory.SimpleInjector Download (Unzip the "nupkg" after downloading)
Dependencies
- EntityFramework(>= 6.0.0)
- SimpleInjector(>= 4.3.0)
Tags