DbProviderServices.GetExecutionStrategy Method

Definition

Overloads

GetExecutionStrategy(DbConnection)

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

GetExecutionStrategy(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.

GetExecutionStrategy(DbConnection)

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

public static System.Data.Entity.Infrastructure.IDbExecutionStrategy GetExecutionStrategy (System.Data.Common.DbConnection connection);
static member GetExecutionStrategy : System.Data.Common.DbConnection -> System.Data.Entity.Infrastructure.IDbExecutionStrategy
Public Shared Function GetExecutionStrategy (connection As DbConnection) As IDbExecutionStrategy

Parameters

connection
DbConnection

The database connection

Returns

A new instance of DbExecutionStrategy

Applies to

GetExecutionStrategy(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 System.Data.Entity.Infrastructure.IDbExecutionStrategy GetExecutionStrategy (System.Data.Common.DbConnection connection, string providerInvariantName);
static member GetExecutionStrategy : System.Data.Common.DbConnection * string -> System.Data.Entity.Infrastructure.IDbExecutionStrategy
Protected Shared Function GetExecutionStrategy (connection As DbConnection, providerInvariantName As String) As IDbExecutionStrategy

Parameters

connection
DbConnection

The database connection

providerInvariantName
String

The provider invariant name

Returns

A new instance of DbExecutionStrategy

Applies to