zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

5 results in tag: unity-container

Using the Unity IOC to inject dbcontext into my controllers and service layer?

How can I inject my dbcontext into the service layer with the Unity IOC. In particular I want to be sure that I only have the one dbcontext and I want to ensure this is destroyed at the right time even if I am using async....My application uses EF6 and a ...
asp.net asp.net-mvc entity-framework entity-framework-6 unity-container
asked by Samantha J T Star

Entity Framework 6 - Dependency Injection with Unity - Repository pattern - Add or Update exception for many to many relationship

I have a problem when adding new values with a many to many mapping in Entity Framework. I know about the ...unit of work pattern... but in our solution we would like to keep a simple repository pattern and not a unit of work class that contains everythin...
c# entity-framework entity-framework-6 unity-container
asked by Ogglas

Register multiple DbContext for IUnitOfWork using Unity IOC

I am using repository pattern with unit of work using IUnitOfWork via ...https://github.com/ziyasal-archive/RepositoryT.EntityFramework/tree/master/RepositoryT.EntityFramework...sample IOC registration is given under ...https://github.com/ziyasal-archive/...
c# entity-framework entity-framework-6 repository-pattern unity-container
asked by Justin Homes

Entity Framework Error when using Unity

On trying to resolve my service class, I'm getting an error that ...DbContext... cannot be constructed because it's an abstract class. The error message is here:...Unity.Exceptions.ResolutionFailedException: 'Resolution of the dependency failed, type = '...
c# dependency-injection entity-framework entity-framework-6 unity-container
asked by Paul Michaels

Unable to consolidate NuGet package transitive dependency versions in two NET Standard projects

Adding EF Core to a NET Standard project introduces transitive dependency versions incompatible with NuGet packages in other projects...I have a solution with multiple .NET Standard 2.0 projects....One ...Project A... uses the ...Google.Protobuf (3.11.2)....
c# entity-framework-core prism unity-container visual-studio
asked by Jinjinov

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!