Share via


DbConnectionDispatcher.BeginTransaction Method

Definition

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

Parameters

connection
DbConnection

The connection on which the operation will be executed.

interceptionContext
BeginTransactionInterceptionContext

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 result of executing the command 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