IRelationalCommandDiagnosticsLogger.CommandNonQueryExecuted Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| CommandNonQueryExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource) |
Protokolliert das CommandExecuted Ereignis. |
| CommandNonQueryExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource) |
Protokolliert das CommandExecuted Ereignis. |
CommandNonQueryExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, Int32, DateTimeOffset, TimeSpan, CommandSource)
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.
- 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)
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.
- 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.