IDbProviderFactoryResolver Interface
A service for obtaining the correct DbProviderFactory from a given DbConnection.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | ResolveProviderFactory(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.