Compartir a través de


RelationalLoggerExtensions.CommandReaderExecuting Método

Definición

Registros del CommandExecuting evento.

public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbDataReader> CommandReaderExecuting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime);
static member CommandReaderExecuting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbDataReader>
<Extension()>
Public Function CommandReaderExecuting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset) As InterceptionResult(Of DbDataReader)

Parámetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

Registrador de diagnóstico que se va a usar.

connection
IRelationalConnection

La conexión.

command
DbCommand

Objeto de comando de base de datos.

context
DbContext

Que DbContext se usa actualmente, en null si no se conoce.

commandId
Guid

Identificador de correlación asociado al especificado DbCommand.

connectionId
Guid

Identificador de correlación asociado al objeto DbConnection que se está usando.

startTime
DateTimeOffset

Hora en que comenzó la ejecución.

Devoluciones

Resultado interceptado.

Se aplica a