共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionOpened 方法

定義

ConnectionOpened事件的記錄。

public void ConnectionOpened (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration);
abstract member ConnectionOpened : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan -> unit
Public Sub ConnectionOpened (connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan)

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

duration
TimeSpan

開啟連接之前的時間量。

適用於