Struct SqlParameterBinderExecutor<TSource>
- Namespace
- LfrlAnvil.Sql.Statements
- Assembly
- LfrlAnvil.Sql.Core.dll
Represents an SqlParameterBinder<TSource> bound to a specific source of parameters.
public readonly record struct SqlParameterBinderExecutor<TSource> : IEquatable<SqlParameterBinderExecutor<TSource>> where TSource : notnull
Type Parameters
TSource
Parameter source type.
- Implements
-
IEquatable<SqlParameterBinderExecutor<TSource>>
- Inherited Members
Constructors
SqlParameterBinderExecutor(SqlParameterBinder<TSource>, TSource?)
Represents an SqlParameterBinder<TSource> bound to a specific source of parameters.
public SqlParameterBinderExecutor(SqlParameterBinder<TSource> Binder, TSource? Source)
Parameters
Binder
SqlParameterBinder<TSource>Underlying parameter binder.
Source
TSourceBound source of parameters.
Properties
Binder
Underlying parameter binder.
public SqlParameterBinder<TSource> Binder { get; init; }
Property Value
- SqlParameterBinder<TSource>
Source
Bound source of parameters.
public TSource? Source { get; init; }
Property Value
- TSource
Methods
Execute(IDbCommand)
Binds Source parameters to the provided command
.
public void Execute(IDbCommand command)
Parameters
command
IDbCommandCommand to bind parameters to.