Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IQueryExpressionInterceptor Interface
Definition
- Namespace:
- Microsoft.EntityFrameworkCore.Diagnostics
- Assembly:
- Microsoft.EntityFrameworkCore.dll
- Package:
- Microsoft.EntityFrameworkCore v10.0.0
- Package:
- Microsoft.EntityFrameworkCore v7.0.0
- Package:
- Microsoft.EntityFrameworkCore v8.0.0
- Package:
- Microsoft.EntityFrameworkCore v9.0.0
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.
Allows interception of query expression trees and resulting compiled delegates.
public interface IQueryExpressionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.ISingletonInterceptor
public interface IQueryExpressionInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor
type IQueryExpressionInterceptor = interface
interface ISingletonInterceptor
interface IInterceptor
type IQueryExpressionInterceptor = interface
interface IInterceptor
Public Interface IQueryExpressionInterceptor
Implements ISingletonInterceptor
Public Interface IQueryExpressionInterceptor
Implements IInterceptor
- Implements
Remarks
Use AddInterceptors(IInterceptor[]) to register application interceptors.
Extensions can also register interceptors in the internal service provider. If both injected and application interceptors are found, then the injected interceptors are run in the order that they are resolved from the service provider, and then the application interceptors are run last.
See EF Core interceptors for more information and examples.
Methods
| Name | Description |
|---|---|
| QueryCompilationStarting(Expression, QueryExpressionEventData) |
Called with the LINQ expression tree for a query before it is compiled. |
Applies to
Entity Framework
Feedback
Was this page helpful?
