IDbProviderFactoryResolver Interface

 

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

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

public interface IDbProviderFactoryResolver

NameDescription
System_CAPS_pubmethodResolveProviderFactory(DbConnection)

Returns the DbProviderFactory for the given connection.

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.