IRelationalCommandDiagnosticsLogger.CommandReaderExecuted Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
CommandReaderExecuted(IRelationalConnection, DbCommand, String, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource)
Registra el CommandExecuted evento.
public System.Data.Common.DbDataReader CommandReaderExecuted(Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, string logCommandText, 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 * string * 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, logCommandText As String, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource) As DbDataReader
Parámetros
- connection
- IRelationalConnection
La conexión.
- command
- DbCommand
Objeto de comando de base de datos.
- logCommandText
- String
Texto del comando que se puede registrar.
- connectionId
- Guid
Identificador de correlación asociado al DbConnection objeto que se está usando.
- methodResult
- DbDataReader
Valor devuelto de la ejecución del método subyacente.
- startTime
- DateTimeOffset
Hora en que se inició la ejecución.
- duration
- TimeSpan
Duración de la ejecución del comando, sin incluir el consumo de resultados.
- commandSource
- CommandSource
Origen del comando.
Devoluciones
Resultado de la ejecución, que un interceptor puede haber modificado.
Se aplica a
CommandReaderExecuted(IRelationalConnection, DbCommand, DbContext, Guid, Guid, DbDataReader, DateTimeOffset, TimeSpan, CommandSource)
Registra el CommandExecuted evento.
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
Parámetros
- connection
- IRelationalConnection
La conexión.
- command
- DbCommand
Objeto de comando de base de datos.
- connectionId
- Guid
Identificador de correlación asociado al DbConnection objeto que se está usando.
- methodResult
- DbDataReader
Valor devuelto de la ejecución del método subyacente.
- startTime
- DateTimeOffset
Hora en que se inició la ejecución.
- duration
- TimeSpan
Duración de la ejecución del comando, sin incluir el consumo de resultados.
- commandSource
- CommandSource
Origen del comando.
Devoluciones
Resultado de la ejecución, que un interceptor puede haber modificado.