src/Shared/EntityFramework/Core/Mapping/ViewGeneration/Structures/CaseStatement.cs
// <summary>
// Recursively qualifies all <see cref="ProjectedSlot" />s and returns a new deeply qualified
// <see
//     cref="CaseStatement" />
// .
// </summary>
Recursively qualifies all s and returns a new deeply qualified


Recursively qualifies all s and returns a new deeply qualified
internal CaseStatement DeepQualify(CqlBlock block)
        {
            var result = new CaseStatement(m_memberPath);
            foreach (var whenThen in m_clauses)
            {
                var newClause = whenThen.ReplaceWithQualifiedSlot(block);
                result.m_clauses.Add(newClause);
            }
            if (m_elseValue != null)
            {
                result.m_elseValue = m_elseValue.DeepQualify(block);
            }
            result.m_simplified = m_simplified;
            return result;
        }
internal CaseStatement DeepQualify ( CqlBlock block ) { var result = new CaseStatement ( m_memberPath ) ; foreach ( var whenThen in m_clauses ) { var newClause = whenThen . ReplaceWithQualifiedSlot ( block ) ; result . m_clauses . Add ( newClause ) ; } if ( m_elseValue != null ) { result . m_elseValue = m_elseValue . DeepQualify ( block ) ; } result . m_simplified = m_simplified ; return result ; }
Recursively qualifies all s and returns a new deeply qualified
Recursively qualifies all s and returns a new deeply qualified
// Go through the whenthens and else and make a new case statement with qualified slots as needed.
block
CqlBlock