Share via


IDbProviderFactoryResolver Interface

Definition

A service for obtaining the correct DbProviderFactory from a given DbConnection.

public interface IDbProviderFactoryResolver
type IDbProviderFactoryResolver = interface
Public Interface IDbProviderFactoryResolver

Remarks

On .NET 4.5 the provider is publicly accessible from the connection. On .NET 4 the default implementation of this service uses some heuristics to find the matching provider. If these fail then a new implementation of this service can be registered on DbConfiguration to provide an appropriate resolution.

Methods

ResolveProviderFactory(DbConnection)

Returns the DbProviderFactory for the given connection.

Applies to