src/Projac.SqlClient/SqlClientSyntax.NonQueryProcedure.cs
/// <summary>
///     Returns a T-SQL non query stored procedure if 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 T-SQL non query stored procedure if the condition is satisfied.
Returns a T - SQL non query stored procedure if the condition is satisfied .
public IEnumerable<SqlNonQueryCommand> NonQueryProcedureIf(bool condition, string text, object parameters = null)
        {
            if (condition)
                yield return NonQueryProcedure(text, parameters);
        }
public IEnumerable < SqlNonQueryCommand > NonQueryProcedureIf ( bool condition , string text , object parameters = null ) { if ( condition ) yield return NonQueryProcedure ( text , parameters ) ; }
Returns a T-SQL non query stored procedure if the condition is satisfied.
Returns a T - SQL non query stored procedure if 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 .