语言

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 。

适用于