Bagikan melalui


IRelationalCommandDiagnosticsLogger.DataReaderDisposing Metode

Definisi

Log untuk peristiwa tersebut DataReaderDisposing .

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult DataReaderDisposing (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);
abstract member DataReaderDisposing : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * int * int * DateTimeOffset * TimeSpan -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Function DataReaderDisposing (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

Parameter

connection
IRelationalConnection

Koneksi.

command
DbCommand

Objek perintah database.

dataReader
DbDataReader

Pembaca data.

commandId
Guid

ID korelasi yang terkait dengan yang diberikan DbCommand.

recordsAffected
Int32

Jumlah rekaman dalam database yang terpengaruh.

readCount
Int32

Jumlah rekaman yang dibaca.

startTime
DateTimeOffset

Waktu operasi dimulai.

duration
TimeSpan

Waktu yang berlalu sejak operasi dimulai.

Mengembalikan

Hasil eksekusi, yang mungkin telah dimodifikasi oleh pencegat.

Berlaku untuk