共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionOpening 方法

定義

ConnectionOpening事件的記錄。

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult ConnectionOpening (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime);
abstract member ConnectionOpening : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Function ConnectionOpening (connection As IRelationalConnection, startTime As DateTimeOffset) As InterceptionResult

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

傳回

執行的結果,可能已經由攔截器修改。

適用於