Sprache

IRelationalCommandDiagnosticsLogger.CommandScalarExecuted Methode

Definition

Überlädt

CommandScalarExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)

Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs

Protokolliert das CommandExecuted Ereignis.

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

Parameter

connection
IRelationalConnection

Die Verbindung.

command
DbCommand

Das Datenbankbefehlsobjekt.

context
DbContext

Der DbContext aktuell verwendete Wert ist null, wenn er nicht bekannt ist.

commandId
Guid

Die Korrelations-ID, die dem angegebenen DbCommandZugeordnet ist.

connectionId
Guid

Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.

methodResult
Object

Der Rückgabewert aus der zugrunde liegenden Methodenausführung.

startTime
DateTimeOffset

Die Zeit, zu der die Ausführung begann.

duration
TimeSpan

Die Dauer der Befehlsausführung, nicht einschließlich der Verwendung von Ergebnissen.

commandSource
CommandSource

Quelle des Befehls.

Gibt zurück

Das Ergebnis der Ausführung, die möglicherweise von einem Interceptor geändert wurde.

Gilt für:

CommandScalarExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Object, DateTimeOffset, TimeSpan, CommandSource)

Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs

Protokolliert das CommandExecuted Ereignis.

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

Parameter

connection
IRelationalConnection

Die Verbindung.

command
DbCommand

Das Datenbankbefehlsobjekt.

logCommandText
String

Der Befehlstext, der protokolliert werden kann.

context
DbContext

Der DbContext aktuell verwendete Wert ist null, wenn er nicht bekannt ist.

commandId
Guid

Die Korrelations-ID, die dem angegebenen DbCommandZugeordnet ist.

connectionId
Guid

Die Korrelations-ID, die dem DbConnection verwendeten Element zugeordnet ist.

methodResult
Object

Der Rückgabewert aus der zugrunde liegenden Methodenausführung.

startTime
DateTimeOffset

Die Zeit, zu der die Ausführung begann.

duration
TimeSpan

Die Dauer der Befehlsausführung, nicht einschließlich der Verwendung von Ergebnissen.

commandSource
CommandSource

Quelle des Befehls.

Gibt zurück

Das Ergebnis der Ausführung, die möglicherweise von einem Interceptor geändert wurde.

Gilt für: