src/Shared/EntityFramework/Core/Mapping/ViewGeneration/Structures/CaseStatement.cs
// <summary>
// Adds an expression of the form "WHEN <paramref name="condition" /> THEN <paramref name="value" />".
// This operation is not allowed after the <see cref="Simplify" /> call.
// </summary>
Adds an expression of the form "WHEN  THEN ".
This operation is not allowed after the  call.
Adds an expression of the form " WHEN THEN " . This operation is not allowed after the call .
internal void AddWhenThen(BoolExpression condition, ProjectedSlot value)
        {
            Debug.Assert(!m_simplified, "Attempt to modify a simplified case statement");
            DebugCheck.NotNull(value);
            condition.ExpensiveSimplify();
            m_clauses.Add(new WhenThen(condition, value));
        }
internal void AddWhenThen ( BoolExpression condition , ProjectedSlot value ) { Debug . Assert ( ! m_simplified , " " ) ; DebugCheck . NotNull ( value ) ; condition . ExpensiveSimplify ( ) ; m_clauses . Add ( new WhenThen ( condition , value ) ) ; }
Adds an expression of the form "WHEN  THEN ".
Adds an expression of the form " WHEN THEN " .
condition
BoolExpression
value
ProjectedSlot