DbConnectionInterceptor.ConnectionOpened 方法

定义

在 EF 调用 Open()后调用 。

public virtual void ConnectionOpened (System.Data.Common.DbConnection connection, Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData eventData);
abstract member ConnectionOpened : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData -> unit
override this.ConnectionOpened : System.Data.Common.DbConnection * Microsoft.EntityFrameworkCore.Diagnostics.ConnectionEndEventData -> unit
Public Overridable Sub ConnectionOpened (connection As DbConnection, eventData As ConnectionEndEventData)

参数

connection
DbConnection

连接。

eventData
ConnectionEndEventData

有关连接的上下文信息。

实现

适用于