DbConfiguration.AddDefaultResolver 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.
A DbProviderServices implementation is automatically registered as a default resolver when it is added with a call to SetProviderServices. This allows EF providers to act as resolvers for other services that may need to be overridden by the provider.