With EFCore.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 Core or just work safest with DbContext following the Microsoft recommendations about the DbContext lifetime.
Learn Entity Framework Core: https://www.learnentityframeworkcore.com/
Entity Framework Core Tutorial: https://entityframeworkcore.com/
Entity Framework 6 Tutorial: https://entityframework.net/
Info
Version: | 2.0.0 |
Author(s): | Geovanny Alzate Sandoval |
Last Update: | Wednesday, November 13, 2019 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/vany0114/EF.DbContextFactory |
NuGet Url: | https://www.nuget.org/packages/EFCore.DbContextFactory |
Install
Install-Package EFCore.DbContextFactory
dotnet add package EFCore.DbContextFactory
paket add EFCore.DbContextFactory
EFCore.DbContextFactory Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
- Microsoft.EntityFrameworkCore(>= 2.0.0)
- Microsoft.EntityFrameworkCore.SqlServer(>= 2.0.0)
- Microsoft.EntityFrameworkCore(>= 3.0.0)
- Microsoft.EntityFrameworkCore.SqlServer(>= 3.0.0)
Tags