IRelationalCommandDiagnosticsLogger.CommandScalarExecuted Yöntem

Tanım

Olay için CommandExecuted günlükler.

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

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

context
DbContext

Şu DbContext anda kullanılmakta olan, bilinmiyorsa null olarak.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılmakta olan ile ilişkili bağıntı DbConnection kimliği.

methodResult
Object

Temel alınan yöntem yürütmesinden döndürülen değer.

startTime
DateTimeOffset

Yürütmenin başladığı saat.

duration
TimeSpan

Sonuçların tüketilmesi dahil olmak üzere komut yürütme süresi.

commandSource
CommandSource

Komutun kaynağı.

Döndürülenler

Bir kesme noktası tarafından değiştirilmiş olabilecek yürütmenin sonucu.

Şunlara uygulanır