IRelationalCommandDiagnosticsLogger.CommandScalarExecuted 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CommandScalarExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)
活動記錄 CommandExecuted 。
public object? CommandScalarExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, object? methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandScalarExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * obj * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> obj
Public Function CommandScalarExecuted (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As Object, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As Object
參數
- connection
- IRelationalConnection
那種連結。
- command
- DbCommand
資料庫指令物件。
- connectionId
- Guid
與所使用的相關性ID DbConnection 相關。
- methodResult
- Object
底層方法執行的回傳值。
- startTime
- DateTimeOffset
那場處決開始的時間。
- duration
- TimeSpan
指令執行的時間長短,不包括結果的消費時間。
- commandSource
- CommandSource
命令來源。
傳回
執行結果,可能被攔截器修改過。
適用於
CommandScalarExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)
活動記錄 CommandExecuted 。
public object? CommandScalarExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, object? methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandScalarExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * string * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * obj * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> obj
Public Function CommandScalarExecuted (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As Object, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As Object
參數
- connection
- IRelationalConnection
那種連結。
- command
- DbCommand
資料庫指令物件。
- logCommandText
- String
可以記錄的指令文字。
- connectionId
- Guid
與所使用的相關性ID DbConnection 相關。
- methodResult
- Object
底層方法執行的回傳值。
- startTime
- DateTimeOffset
那場處決開始的時間。
- duration
- TimeSpan
指令執行的時間長短,不包括結果的消費時間。
- commandSource
- CommandSource
命令來源。
傳回
執行結果,可能被攔截器修改過。