Share via


DbInterception.Add(IDbInterceptor) 方法

定义

注册新的 IDbInterceptor 以接收通知。 请注意,侦听器必须实现从 扩展 IDbInterceptor 的某个接口,以便非常有用。

public static void Add (System.Data.Entity.Infrastructure.Interception.IDbInterceptor interceptor);
static member Add : System.Data.Entity.Infrastructure.Interception.IDbInterceptor -> unit
Public Shared Sub Add (interceptor As IDbInterceptor)

参数

interceptor
IDbInterceptor

要添加的侦听器。

适用于