DbConnectionInterceptor.ConnectionDisposed 方法

定义

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

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

参数

connection
DbConnection

连接。

eventData
ConnectionEndEventData

有关连接的上下文信息。

实现

适用于