src/Projac.SqlClient/Legacy/TSql.QueryProcedure.cs
/// <summary>
///     Returns a T-SQL non query stored procedure unless the condition is satisfied.
/// </summary>
/// <param name="condition">The condition to satisfy</param>
/// <param name="text">The text.</param>
/// <param name="parameters">The parameters.</param>
/// <returns>A <see cref="SqlNonQueryCommand" />.</returns>
Returns a T-SQL non query stored procedure unless the condition is satisfied.
Returns a T - SQL non query stored procedure unless the condition is satisfied .
public static IEnumerable<SqlQueryCommand> QueryProcedureUnless(bool condition, string text, object parameters = null)
        {
            if (!condition)
                yield return QueryProcedure(text, parameters);
        }
public static IEnumerable < SqlQueryCommand > QueryProcedureUnless ( bool condition , string text , object parameters = null ) { if ( ! condition ) yield return QueryProcedure ( text , parameters ) ; }
Returns a T-SQL non query stored procedure unless the condition is satisfied.
Returns a T - SQL non query stored procedure unless the condition is satisfied .
None
condition
bool
The condition to satisfy
The condition to satisfy
text
string
None
parameters
object
None