Udostępnij przez


BeginTransactionInterceptionContext.WithDbContext(DbContext) Metoda

Definicja

Tworzy nowy BeginTransactionInterceptionContext , który zawiera wszystkie informacje kontekstowe w tym kontekście przechwytywania z dodatkiem danego ObjectContextelementu .

public System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext
Public Function WithDbContext (context As DbContext) As BeginTransactionInterceptionContext

Parametry

context
DbContext

Kontekst do skojarzenia.

Zwraca

Nowy kontekst przechwytywania skojarzony z danym kontekstem.

Dotyczy