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
使用されている DbConnection に関連付けられている関連付け ID。
- 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
使用されている DbConnection に関連付けられている関連付け ID。
- methodResult
- Object
基になるメソッドの実行からの戻り値。
- startTime
- DateTimeOffset
実行が開始された時刻。
- duration
- TimeSpan
結果の使用を含まない、コマンドの実行時間。
- commandSource
- CommandSource
コマンドのソース。
戻り値
インターセプターによって変更された可能性がある実行の結果。