Condividi tramite


IRelationalCommandDiagnosticsLogger.DataReaderClosingAsync Metodo

Definizione

Registra l'evento DataReaderClosing .

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult> DataReaderClosingAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, System.Data.Common.DbDataReader dataReader, Guid commandId, int recordsAffected, int readCount, DateTimeOffset startTime);
abstract member DataReaderClosingAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * int * int * DateTimeOffset -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult>
Public Function DataReaderClosingAsync (connection As IRelationalConnection, command As DbCommand, dataReader As DbDataReader, commandId As Guid, recordsAffected As Integer, readCount As Integer, startTime As DateTimeOffset) As ValueTask(Of InterceptionResult)

Parametri

connection
IRelationalConnection

Connessione.

command
DbCommand

Oggetto comando del database.

dataReader
DbDataReader

Lettore di dati.

commandId
Guid

ID di correlazione associato all'oggetto specificato DbCommand.

recordsAffected
Int32

Numero di record nel database interessati.

readCount
Int32

Numero di record letti.

startTime
DateTimeOffset

Ora di avvio dell'operazione.

Restituisce

Risultato dell'esecuzione, che può essere stato modificato da un intercettore.

Si applica a