Udostępnij przez


DbCommandInterceptionContext<TResult>.WithDbContext(DbContext) Metoda

Definicja

Tworzy nowy DbCommandInterceptionContext<TResult> element zawierający wszystkie informacje kontekstowe w tym kontekście przechwytywania z dodatkiem danego DbContextelementu .

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result>
Public Function WithDbContext (context As DbContext) As DbCommandInterceptionContext(Of TResult)

Parametry

context
DbContext

Kontekst do skojarzenia.

Zwraca

Nowy kontekst przechwytywania skojarzony z danym kontekstem.

Dotyczy