src/Shared/EntityFramework/Core/Query/PlanCompiler/Predicate.cs
// <summary>
// Does this predicate preserve nulls for the table columns?
// If the ansiNullSemantics parameter is set, then we simply return true
// always - this shuts off most optimizations
// </summary>
// <param name="tableColumns"> list of columns to consider </param>
// <param name="ansiNullSemantics"> use ansi null semantics </param>
// <returns> true, if the predicate preserves nulls </returns>
Does this predicate preserve nulls for the table columns.
If the ansiNullSemantics parameter is set, then we simply return true
always - this shuts off most optimizations
Does this predicate preserve nulls for the table columns . If the ansiNullSemantics parameter is set then we simply return true always - this shuts off most optimizations
internal bool PreservesNulls(VarVec tableColumns, bool ansiNullSemantics)
        {
            if (!ansiNullSemantics)
            {
                return true;
            }
            foreach (var part in m_parts)
            {
                if (!PreservesNulls(part, tableColumns))
                {
                    return false;
                }
            }
            return true;
        }
internal bool PreservesNulls ( VarVec tableColumns , bool ansiNullSemantics ) { if ( ! ansiNullSemantics ) { return true ; } foreach ( var part in m_parts ) { if ( ! PreservesNulls ( part , tableColumns ) ) { return false ; } } return true ; }
Does this predicate preserve nulls for the table columns?
Does this predicate preserve nulls for the table columns?
// Don't mess with non-ansi semantics // If at least one part does not preserve nulls, then we simply return false
true, if the predicate preserves nulls
true if the predicate preserves nulls
tableColumns
VarVec
list of columns to consider
list of columns to consider
ansiNullSemantics
bool
use ansi null semantics
use ansi null semantics