IRelationalCommandDiagnosticsLogger.DataReaderClosing 方法

定义

DataReaderClosing事件的日志。

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult DataReaderClosing (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 DataReaderClosing : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * System.Data.Common.DbDataReader * Guid * int * int * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult
Public Function DataReaderClosing (connection As IRelationalConnection, command As DbCommand, dataReader As DbDataReader, commandId As Guid, recordsAffected As Integer, readCount As Integer, startTime As DateTimeOffset) As InterceptionResult

参数

connection
IRelationalConnection

连接。

command
DbCommand

数据库命令对象。

dataReader
DbDataReader

数据读取器。

commandId
Guid

与给定 DbCommand关联的关联 ID。

recordsAffected
Int32

数据库中受影响的记录数。

readCount
Int32

读取的记录数。

startTime
DateTimeOffset

开始操作的时间。

返回

执行的结果,可能已被侦听器修改。

适用于