Share via


BeginTransactionInterceptionContext.WithIsolationLevel(IsolationLevel) Method

Definition

Creates a new BeginTransactionInterceptionContext that contains all the contextual information in this interception context together with the given IsolationLevel.

public System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext WithIsolationLevel (System.Data.IsolationLevel isolationLevel);
member this.WithIsolationLevel : System.Data.IsolationLevel -> System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext

Parameters

isolationLevel
IsolationLevel

The isolation level to associate.

Returns

A new interception context associated with the given isolation level.

Applies to