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
ParameterBinderSqlParameterBinderUnderlying parameter binder.
ReaderSqlQueryReaderExecutorUnderlying query reader.
Properties
ParameterBinder
Underlying parameter binder.
public SqlParameterBinder ParameterBinder { get; init; }
Property Value
Reader
Underlying query reader.
public SqlQueryReaderExecutor Reader { get; init; }
Property Value
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
commandIDbCommandIDbCommand to read from.
parametersIEnumerable<SqlParameter>Source of parameters to bind.
optionsSqlQueryReaderOptions?Query reader options.
Returns
- SqlQueryResult
Returns a collection of read rows.