IDbProviderFactoryResolver Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework