DbConnectionInterceptor.ConnectionClosed 方法

定义

在 EF 在异步上下文中调用 Close() 后调用。

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

参数

connection
DbConnection

连接。

eventData
ConnectionEndEventData

有关连接的上下文信息。

实现

适用于