Freigeben über


IRelationalCommandDiagnosticsLogger.CommandReaderExecuted Methode

Definition

Protokolle für das CommandExecuted Ereignis.

public System.Data.Common.DbDataReader CommandReaderExecuted (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, System.Data.Common.DbDataReader methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandReaderExecuted : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * System.Data.Common.DbDataReader * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> System.Data.Common.DbDataReader
Public Function CommandReaderExecuted (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbDataReader

Parameter

connection
IRelationalConnection

Die Verbindung.

command
DbCommand

Das Datenbankbefehlsobjekt.

context
DbContext

Die DbContext derzeit verwendete , um NULL zu verwenden, wenn sie nicht bekannt ist.

commandId
Guid

Die Korrelations-ID, die dem angegebenen DbCommandzugeordnet ist.

connectionId
Guid

Die Korrelations-ID, die der DbConnection verwendeten zugeordnet ist.

methodResult
DbDataReader

Der Rückgabewert der zugrunde liegenden Methodenausführung.

startTime
DateTimeOffset

Der Zeitpunkt, zu dem die Ausführung begonnen hat.

duration
TimeSpan

Die Dauer der Befehlsausführung, ohne die Nutzung der Ergebnisse.

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: