src/Projac.SQLite/SQLiteSyntax.QueryStatement.cs
/// <summary>
///     Returns a SQL query statement if the condition is satisfied.
/// </summary>
/// <param name="condition">The condition to satisfy.</param>
/// <param name="format">The text with positional parameters to be formatted.</param>
/// <param name="parameters">The positional parameter values.</param>
/// <returns>A <see cref="SqlQueryCommand" />.</returns>
Returns a SQL query statement if the condition is satisfied.
Returns a SQL query statement if the condition is satisfied .
public IEnumerable<SqlQueryCommand> QueryStatementFormatIf(bool condition, string format,
            params IDbParameterValue[] parameters)
        {
            if (condition)
                yield return QueryStatementFormat(format, parameters);
        }
public IEnumerable < SqlQueryCommand > QueryStatementFormatIf ( bool condition , string format , params IDbParameterValue [ ] parameters ) { if ( condition ) yield return QueryStatementFormat ( format , parameters ) ; }
Returns a SQL query statement if the condition is satisfied.
Returns a SQL query statement if the condition is satisfied .
None
condition
bool
The condition to satisfy.
The condition to satisfy .
format
string
The text with positional parameters to be formatted.
The text with positional parameters to be formatted .
parameters
The positional parameter values.
The positional parameter values .