Udostępnij za pośrednictwem


IInterceptors.Aggregate<TInterceptor> Metoda

Definicja

Rozwiązuje jeden element TInterceptor ze wszystkich zarejestrowanych na serwerze DbContext lub w wewnętrznym dostawcy usług.

public TInterceptor Aggregate<TInterceptor> () where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
public TInterceptor? Aggregate<TInterceptor> () where TInterceptor : class, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;
abstract member Aggregate : unit -> 'Interceptor (requires 'Interceptor : null and 'Interceptor :> Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor)
Public Function Aggregate(Of TInterceptor As {Class, IInterceptor}) () As TInterceptor

Parametry typu

TInterceptor

Typ przechwytywania, który ma zostać rozwiązany.

Zwraca

TInterceptor

Rozpoznany przechwytujący, który może być null , jeśli żaden z nich nie jest zarejestrowany.

Dotyczy