DbProviderServices.GetProviderFactory Method

.NET Framework 4.6 and 4.5

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


Type: System.Data.Common.DbConnection

The connection to use.

Return Value

Type: System.Data.Common.DbProviderFactory
The retrieved DbProviderFactory.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft