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
SqlParameterBinderUnderlying parameter binder.
Source
IEnumerable<SqlParameter>Bound source of parameters.
Properties
Binder
Underlying parameter binder.
public SqlParameterBinder Binder { get; init; }
Property Value
Source
Bound source of parameters.
public IEnumerable<SqlParameter>? Source { get; init; }
Property Value
Methods
Execute(IDbCommand)
Binds Source parameters to the provided command
.
public void Execute(IDbCommand command)
Parameters
command
IDbCommandCommand to bind parameters to.