DbProviderServices.GetProviderFactory Method (DbConnection)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Retrieves the DbProviderFactory based on the specified DbConnection.

Namespace:   System.Data.Common
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public static DbProviderFactory GetProviderFactory(
	DbConnection connection
)

Parameters

connection
Type: System.Data.Common.DbConnection

The connection to use.

Return Value

Type: System.Data.Common.DbProviderFactory

The retrieved DbProviderFactory.

.NET Framework
Available since 4.0
Return to top
Show: