共用方式為


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

連線的相關內容資訊。

實作

適用於