Partilhar via


IInterceptors.Aggregate<TInterceptor> Método

Definição

Resolve um único TInterceptor de todos os registrados no DbContext ou no provedor de serviços interno.

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

Parâmetros de tipo

TInterceptor

O tipo de interceptador a ser resolve.

Retornos

TInterceptor

O interceptador resolvido, que pode ser null se nenhum estiver registrado.

Aplica-se a