Table of Contents

Struct SqlQueryReaderExecutor

Namespace
LfrlAnvil.Sql.Statements
Assembly
LfrlAnvil.Sql.Core.dll

Represents an SqlQueryReader bound to a specific Sql statement.

public readonly record struct SqlQueryReaderExecutor : IEquatable<SqlQueryReaderExecutor>
Implements
Inherited Members

Constructors

SqlQueryReaderExecutor(SqlQueryReader, string)

Represents an SqlQueryReader bound to a specific Sql statement.

public SqlQueryReaderExecutor(SqlQueryReader Reader, string Sql)

Parameters

Reader SqlQueryReader

Underlying query reader.

Sql string

Bound SQL statement.

Properties

Reader

Underlying query reader.

public SqlQueryReader Reader { get; init; }

Property Value

SqlQueryReader

Sql

Bound SQL statement.

public string Sql { get; init; }

Property Value

string

Methods

Execute(IDbCommand, SqlQueryReaderOptions?)

Creates an IDataReader instance and reads a collection of rows, using the specified Sql statement.

[Pure]
public SqlQueryResult Execute(IDbCommand command, SqlQueryReaderOptions? options = null)

Parameters

command IDbCommand

IDbCommand to read from.

options SqlQueryReaderOptions?

Query reader options.

Returns

SqlQueryResult

Returns a collection of read rows.