DbProviderServices.GetExecutionStrategy Method

 

Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetExecutionStrategy(DbConnection)

Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection.

System_CAPS_protmethodSystem_CAPS_staticGetExecutionStrategy(DbConnection, String)

Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection. This overload should be used by the derived classes for compatability with wrapping providers.


DbProviderServices.GetExecutionStrategy Method (DbConnection)

Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection.

public static IDbExecutionStrategy GetExecutionStrategy(
	DbConnection connection
)

Parameters

connection
Type: System.Data.Common.DbConnection

The database connection


DbProviderServices.GetExecutionStrategy Method (DbConnection, String)

Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection. This overload should be used by the derived classes for compatability with wrapping providers.

protected static IDbExecutionStrategy GetExecutionStrategy(
	DbConnection connection,
	string providerInvariantName
)

Parameters

connection
Type: System.Data.Common.DbConnection

The database connection

providerInvariantName
Type: System.String

The provider invariant name