IDbConnectionInterceptor.StateGetting 方法

定义

在检索之前 State 调用。

public void StateGetting (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> interceptionContext);
abstract member StateGetting : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbConnectionInterceptionContext<System.Data.ConnectionState> -> unit
Public Sub StateGetting (connection As DbConnection, interceptionContext As DbConnectionInterceptionContext(Of ConnectionState))

参数

connection
DbConnection

连接。

interceptionContext
DbConnectionInterceptionContext<ConnectionState>

与调用关联的上下文信息。

适用于