共用方式為


IRelationalConnectionDiagnosticsLogger.ConnectionCreating 方法

定義

ConnectionCreating事件的記錄。

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbConnection> ConnectionCreating (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, DateTimeOffset startTime);
abstract member ConnectionCreating : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbConnection>
Public Function ConnectionCreating (connection As IRelationalConnection, startTime As DateTimeOffset) As InterceptionResult(Of DbConnection)

參數

connection
IRelationalConnection

連接。

startTime
DateTimeOffset

作業啟動的時間。

傳回

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

適用於