RelationalDataReader Class

Definition

Reads result sets from a relational database.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class RelationalDataReader : IDisposable
public class RelationalDataReader : IAsyncDisposable, IDisposable
type RelationalDataReader = class
    interface IDisposable
type RelationalDataReader = class
    interface IDisposable
    interface IAsyncDisposable
Public Class RelationalDataReader
Implements IDisposable
Public Class RelationalDataReader
Implements IAsyncDisposable, IDisposable
Inheritance
RelationalDataReader
Implements

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

RelationalDataReader()
RelationalDataReader(DbCommand, DbDataReader, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)
Obsolete.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

RelationalDataReader(DbDataReader)
Obsolete.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

RelationalDataReader(IRelationalConnection, DbCommand, DbDataReader)

Initializes a new instance of the RelationalDataReader class.

RelationalDataReader(IRelationalConnection, DbCommand, DbDataReader, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Initializes a new instance of the RelationalDataReader class.

Properties

CommandId

A correlation ID that identifies the DbCommand instance being used.

DbCommand

Gets the underlying command for the result set.

DbDataReader

Gets the underlying reader for the result set.

RelationalConnection

Gets the underlying relational connection being used.

Methods

Close()

Closes the reader.

CloseAsync()

Closes the reader.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Initialize(IRelationalConnection, DbCommand, DbDataReader, Guid, IRelationalCommandDiagnosticsLogger)

Initializes a new instance of the RelationalDataReader class.

Read()

Calls Read() on the underlying DbDataReader.

ReadAsync(CancellationToken)

Calls ReadAsync(CancellationToken) on the underlying DbDataReader.

Applies to