IInterceptors.Aggregate<TInterceptor> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resolves a single TInterceptor
from all those registered on
the DbContext or in the internal service provider.
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
Type Parameters
- TInterceptor
The interceptor type to resolve.
Returns
TInterceptor
The resolved interceptor, which may be null
if none are registered.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework