语言

IQueryExpressionInterceptor 接口

定义

允许截获查询表达式树和生成的已编译委托。

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
实现

注解

用于 AddInterceptors(IInterceptor[]) 注册应用程序拦截器。

扩展还可以在内部服务提供商中注册侦听器。 如果同时找到注入的侦听器和应用程序拦截器,则注入的侦听器按从服务提供商解析的顺序运行,然后最后运行应用程序拦截器。

有关详细信息和示例,请参阅 EF Core 拦截器 。

方法

名称 说明
QueryCompilationStarting(Expression, QueryExpressionEventData)

在编译查询之前,使用 LINQ 表达式树进行调用。

适用于