共用方式為


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

連線的相關內容資訊。

實作

適用於