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 |
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.StructureMap.WebApi |
Install
Install-Package EF.DbContextFactory.StructureMap.WebApi
dotnet add package EF.DbContextFactory.StructureMap.WebApi
paket add EF.DbContextFactory.StructureMap.WebApi
EF.DbContextFactory.StructureMap.WebApi Download (Unzip the "nupkg" after downloading)
Dependencies
- EntityFramework(>= 6.0.0)
- WebApi.StructureMap(>= 1.0.21)
Tags