DbProviderServices.GetExecutionStrategy Method
Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | 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. |
DbProviderServices.GetExecutionStrategy Method (DbConnection)
Gets the IDbExecutionStrategy that will be used to execute methods that use the specified connection.
Parameters
- connection
-
Type:
System.Data.Common.DbConnection
The database connection
Return Value
Type: System.Data.Entity.Infrastructure.IDbExecutionStrategyA new instance of DbExecutionStrategy
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
Return Value
Type: System.Data.Entity.Infrastructure.IDbExecutionStrategyA new instance of DbExecutionStrategy