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.

C#
public class RelationalDataReader : IDisposable
C#
public class RelationalDataReader : 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, Guid, IDiagnosticsLogger<DbLoggerCategory.Database.Command>)

Initializes a new instance of the RelationalDataReader class.

RelationalDataReader(IRelationalConnection, DbCommand, DbDataReader)

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

Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0