IRelationalCommandDiagnosticsLogger.CommandNonQueryExecuted 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
CommandExecuted事件的記錄。
public int CommandNonQueryExecuted (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, int methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandNonQueryExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * int * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> int
Public Function CommandNonQueryExecuted (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As Integer, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As Integer
- connection
- IRelationalConnection
連接。
- command
- DbCommand
資料庫命令物件。
- connectionId
- Guid
與使用中相關聯的 DbConnection 相互關聯識別碼。
- methodResult
- Int32
基礎方法執行的傳回值。
- startTime
- DateTimeOffset
開始執行的時間。
- duration
- TimeSpan
命令執行的持續時間,不包括取用結果。
- commandSource
- CommandSource
命令的來源。
執行的結果,可能已經由攔截器修改。