SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ BindValueFromEntity()

template<IdentifierType IDENTIFIER>
void sqt::IdentifierValueTraits< IDENTIFIER >::BindValueFromEntity ( Statement & statement,
int parameter_index,
const EntityType & entity )
static

Binds a value from an entity to the statement at the specified parameter index.

Parameters
statementThe statement to which the value is bound.
parameter_indexThe index of the parameter to which the value is bound.
entityThe entity from which the value is extracted.

This method extracts the value from the entity using the ValueSource of the identifier and calls the BindValue() method to bind the value to the statement.