DbConfiguration.AddDependencyResolver Method (IDbDependencyResolver)
Adds a IDbDependencyResolver instance to the Chain of Responsibility of resolvers that are used to resolve dependencies needed by the Entity Framework.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- resolver
-
Type:
System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
The resolver to add.
Resolvers are asked to resolve dependencies in reverse order from which they are added. This means that a resolver can be added to override resolution of a dependency that would already have been resolved in a different way. The exceptions to this is that any dependency registered in the application's config file will always be used in preference to using a dependency resolver added here.