Sprache

IRelationalCommandDiagnosticsLogger.CommandNonQueryExecuted Methode

Definition

Überlädt

CommandNonQueryExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource)

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

Protokolliert das CommandExecuted Ereignis.

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

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
Int32

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:

CommandNonQueryExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource)

Quelle:
IRelationalCommandDiagnosticsLogger.cs
Quelle:
IRelationalCommandDiagnosticsLogger.cs

Protokolliert das CommandExecuted Ereignis.

public int CommandNonQueryExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, 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 * string * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * int * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> int
Public Function CommandNonQueryExecuted (connection As IRelationalConnection, command As DbCommand, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As Integer, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As Integer

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
Int32

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: