Partilhar via


RelationalLoggerExtensions.DataReaderDisposing Método

Definição

Logs do DataReaderDisposing evento.

public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult DataReaderDisposing (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Guid commandId, int recordsAffected, int readCount, DateTimeOffset startTime, TimeSpan duration);
static member DataReaderDisposing : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * int * int * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
<Extension()>
Public Function DataReaderDisposing (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), connection As IRelationalConnection, command As DbCommand, dataReader As DbDataReader, commandId As Guid, recordsAffected As Integer, readCount As Integer, startTime As DateTimeOffset, duration As TimeSpan) As InterceptionResult

Parâmetros

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Command>

O agente diagnóstico a ser usado.

connection
IRelationalConnection

A conexão.

command
DbCommand

O objeto de comando do banco de dados.

dataReader
DbDataReader

O leitor de dados.

commandId
Guid

A ID de correlação associada ao determinado DbCommand.

recordsAffected
Int32

O número de registros no banco de dados que foram afetados.

readCount
Int32

O número de registros que foram lidos.

startTime
DateTimeOffset

A hora em que a operação foi iniciada.

duration
TimeSpan

O tempo decorrido de quando a operação foi iniciada.

Retornos

O resultado da execução, que pode ter sido modificado por um interceptador.

Aplica-se a