共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionCreated 方法

定義

ConnectionCreated事件的記錄。

public System.Data.Common.DbConnection ConnectionCreated (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime, TimeSpan duration);
abstract member ConnectionCreated : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset * TimeSpan -> System.Data.Common.DbConnection
Public Function ConnectionCreated (connection As IRelationalConnection, startTime As DateTimeOffset, duration As TimeSpan) As DbConnection

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

duration
TimeSpan

建立連線所花費的時間量。

傳回

適用於