IRelationalCommandDiagnosticsLogger.DataReaderDisposing Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Logs for the DataReaderDisposing event.
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
Parameters
- connection
- IRelationalConnection
The connection.
- command
- DbCommand
The database command object.
- dataReader
- DbDataReader
The data reader.
- recordsAffected
- Int32
The number of records in the database that were affected.
- readCount
- Int32
The number of records that were read.
- startTime
- DateTimeOffset
The time that the operation was started.
- duration
- TimeSpan
The elapsed time from when the operation was started.
Returns
The result of execution, which may have been modified by an interceptor.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework