Table of Contents

Struct SqlParameterizedQueryReaderExecutor

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

Represents an SqlQueryReaderExecutor bound to an SqlParameterBinder instance.

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

Constructors

SqlParameterizedQueryReaderExecutor(SqlParameterBinder, SqlQueryReaderExecutor)

Represents an SqlQueryReaderExecutor bound to an SqlParameterBinder instance.

public SqlParameterizedQueryReaderExecutor(SqlParameterBinder ParameterBinder, SqlQueryReaderExecutor Reader)

Parameters

ParameterBinder SqlParameterBinder

Underlying parameter binder.

Reader SqlQueryReaderExecutor

Underlying query reader.

Properties

ParameterBinder

Underlying parameter binder.

public SqlParameterBinder ParameterBinder { get; init; }

Property Value

SqlParameterBinder

Reader

Underlying query reader.

public SqlQueryReaderExecutor Reader { get; init; }

Property Value

SqlQueryReaderExecutor

Methods

Execute(IDbCommand, IEnumerable<SqlParameter>?, SqlQueryReaderOptions?)

Creates an IDataReader instance and reads a collection of rows, using the given parameters.

[Pure]
public SqlQueryResult Execute(IDbCommand command, IEnumerable<SqlParameter>? parameters, SqlQueryReaderOptions? options = null)

Parameters

command IDbCommand

IDbCommand to read from.

parameters IEnumerable<SqlParameter>

Source of parameters to bind.

options SqlQueryReaderOptions?

Query reader options.

Returns

SqlQueryResult

Returns a collection of read rows.