src/Shared/EntityFramework/Core/Query/PlanCompiler/Predicate.cs
// <summary>
// Build up an AND tree based on the current parts.
// Specifically, if I have parts (p1, p2, ..., pn), we build up a tree that looks like
// p1 AND p2 AND ... AND pn
// If we have no parts, we return a null reference
// If we have only one part, then we return just that part
// </summary>
// <returns> the and subtree </returns>
Build up an AND tree based on the current parts.
Specifically, if I have parts (p1, p2, ..., pn), we build up a tree that looks like
p1 AND p2 AND ... AND pn
If we have no parts, we return a null reference
If we have only one part, then we return just that part
Build up an AND tree based on the current parts . Specifically if I have parts ( p1 p2 ... pn ) we build up a tree that looks like p1 AND p2 AND ... AND pn If we have no parts we return a null reference If we have only one part then we return just that part
internal Node BuildAndTree()
        {
            Node andNode = null;
            foreach (var n in m_parts)
            {
                if (andNode == null)
                {
                    andNode = n;
                }
                else
                {
                    andNode = m_command.CreateNode(
                        m_command.CreateConditionalOp(OpType.And),
                        andNode, n);
                }
            }
            return andNode;
        }
internal Node BuildAndTree ( ) { Node andNode = null ; foreach ( var n in m_parts ) { if ( andNode == null ) { andNode = n ; } else { andNode = m_command . CreateNode ( m_command . CreateConditionalOp ( OpType . And ) , andNode , n ) ; } } return andNode ; }
Build up an AND tree based on the current parts.
Build up an AND tree based on the current parts .
the and subtree
the and subtree