Share via


DbConfigurationLoadedEventArgs.AddDefaultResolver Method

Definition

Call this method to add a IDbDependencyResolver instance to the Chain of Responsibility of resolvers that are used to resolve dependencies needed by the Entity Framework. Unlike the AddDependencyResolver method, this method puts the resolver at the bottom of the Chain of Responsibility such that it will only be used to resolve a dependency that could not be resolved by any of the other resolvers.

public void AddDefaultResolver (System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver);
member this.AddDefaultResolver : System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver -> unit
Public Sub AddDefaultResolver (resolver As IDbDependencyResolver)

Parameters

resolver
IDbDependencyResolver

The resolver to add.

Applies to