src/Shared/EntityFramework/Core/Query/PlanCompiler/SubqueryTrackingVisitor.cs
// <summary>
// Add a subquery to the "parent" relop node
// </summary>
// <param name="outputVar"> the output var to be used - at the current location - in lieu of the subquery </param>
// <param name="subquery"> the subquery to move </param>
// <returns> a var ref node for the var returned from the subquery </returns>
Add a subquery to the "parent" relop node
Add a subquery to the " parent " relop node
[SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters",
            MessageId = "System.Data.Entity.Core.Query.PlanCompiler.PlanCompiler.Assert(System.Boolean,System.String)")]
        protected Node AddSubqueryToParentRelOp(Var outputVar, Node subquery)
        {
            var ancestor = FindRelOpAncestor();
            PlanCompiler.Assert(ancestor != null, "no ancestors found?");
            AddSubqueryToRelOpNode(ancestor, subquery);
            subquery = m_command.CreateNode(m_command.CreateVarRefOp(outputVar));
            return subquery;
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] protected Node AddSubqueryToParentRelOp ( Var outputVar , Node subquery ) { var ancestor = FindRelOpAncestor ( ) ; PlanCompiler . Assert ( ancestor != null , " " ) ; AddSubqueryToRelOpNode ( ancestor , subquery ) ; subquery = m_command . CreateNode ( m_command . CreateVarRefOp ( outputVar ) ) ; return subquery ; }
Add a subquery to the "parent" relop node
Add a subquery to the " parent " relop node
a var ref node for the var returned from the subquery
a var ref node for the var returned from the subquery
outputVar
Var
the output var to be used - at the current location - in lieu of the subquery
the output var to be used - at the current location - in lieu of the subquery
subquery
Node
the subquery to move
the subquery to move