src/Projac.SQLite/SQLiteSyntax.NonQueryStatement.cs
/// <summary>
///     Returns a SQL non query statement unless the condition is satisfied.
/// </summary>
/// <param name="condition">The condition to satisfy</param>
/// <param name="text">The text with named parameters.</param>
/// <param name="parameters">The named parameters.</param>
/// <returns>A <see cref="SqlNonQueryCommand" />.</returns>
Returns a SQL non query statement unless the condition is satisfied.
Returns a SQL non query statement unless the condition is satisfied .
public IEnumerable<SqlNonQueryCommand> NonQueryStatementUnless(bool condition, string text,
            object parameters = null)
        {
            if (!condition)
                yield return NonQueryStatement(text, parameters);
        }
public IEnumerable < SqlNonQueryCommand > NonQueryStatementUnless ( bool condition , string text , object parameters = null ) { if ( ! condition ) yield return NonQueryStatement ( text , parameters ) ; }
Returns a SQL non query statement unless the condition is satisfied.
Returns a SQL non query statement unless the condition is satisfied .
None
condition
bool
The condition to satisfy
The condition to satisfy
text
string
The text with named parameters.
The text with named parameters .
parameters
object
The named parameters.
The named parameters .