Table of Contents

Struct SqlParameterBinderExecutor

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

Represents an SqlParameterBinder bound to a specific source of parameters.

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

Constructors

SqlParameterBinderExecutor(SqlParameterBinder, IEnumerable<SqlParameter>?)

Represents an SqlParameterBinder bound to a specific source of parameters.

public SqlParameterBinderExecutor(SqlParameterBinder Binder, IEnumerable<SqlParameter>? Source)

Parameters

Binder SqlParameterBinder

Underlying parameter binder.

Source IEnumerable<SqlParameter>

Bound source of parameters.

Properties

Binder

Underlying parameter binder.

public SqlParameterBinder Binder { get; init; }

Property Value

SqlParameterBinder

Source

Bound source of parameters.

public IEnumerable<SqlParameter>? Source { get; init; }

Property Value

IEnumerable<SqlParameter>

Methods

Execute(IDbCommand)

Binds Source parameters to the provided command.

public void Execute(IDbCommand command)

Parameters

command IDbCommand

Command to bind parameters to.