語言

IInterceptors.Aggregate<TInterceptor> 方法

定義

從所有註冊於DbContext內部服務提供者或服務提供者的帳戶中解決一個TInterceptor。

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

類型參數

TInterceptor

攔截機類型需要解決。

傳回

TInterceptor

已解析攔截機,若 null 沒有偵測到攔截器。

適用於