IRelationalCommandDiagnosticsLogger.CommandInitialized 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
CommandInitialized事件的記錄。
public System.Data.Common.DbCommand CommandInitialized (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod commandMethod, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandInitialized : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.Diagnostics.DbCommandMethod * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> System.Data.Common.DbCommand
Public Function CommandInitialized (connection As IRelationalConnection, command As DbCommand, commandMethod As DbCommandMethod, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbCommand
參數
- connection
- IRelationalConnection
連接。
- command
- DbCommand
資料庫命令物件。
- commandMethod
- DbCommandMethod
將在此命令上呼叫的方法類型。
- connectionId
- Guid
與使用中相關聯的 DbConnection 相互關聯識別碼。
- startTime
- DateTimeOffset
開始執行的時間。
- duration
- TimeSpan
命令建立的持續時間。
- commandSource
- CommandSource
命令的來源。
傳回
攔截的結果。