Share via


DbTransactionDispatcher.GetConnection Method

Definition

public virtual System.Data.Common.DbConnection GetConnection (System.Data.Common.DbTransaction transaction, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext);
abstract member GetConnection : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> System.Data.Common.DbConnection
override this.GetConnection : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> System.Data.Common.DbConnection
Public Overridable Function GetConnection (transaction As DbTransaction, interceptionContext As DbInterceptionContext) As DbConnection

Parameters

transaction
DbTransaction

The transaction on which the operation will be executed.

interceptionContext
DbInterceptionContext

Optional information about the context of the call being made.

Returns

The result of the operation, which may have been modified by interceptors.

Remarks

Note that the value of the property is returned by this method. The result is not available in the interception context passed into this method since the interception context is cloned before being passed to interceptors.

Applies to