语言

IDbTransactionInterceptor 接口

定义

在实体框架提交或回滚事务时,可以注册 DbInterception 实现此接口的对象以接收通知。

public interface IDbTransactionInterceptor : System.Data.Entity.Infrastructure.Interception.IDbInterceptor
type IDbTransactionInterceptor = interface
    interface IDbInterceptor
Public Interface IDbTransactionInterceptor
Implements IDbInterceptor
派生
实现

注解

还可以在应用程序的配置文件中注册侦听器。 有关 Entity Framework 配置的详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=260883 。

适用于