src/Shared/EntityFramework/Core/Common/EntitySql/SourceScopeEntry.cs
// <summary>
// Prepend <paramref name="parentVarRef" /> to the property chain.
// </summary>
Prepend  to the property chain.
Prepend to the property chain .
internal SourceScopeEntry AddParentVar(DbVariableReferenceExpression parentVarRef)
        {
             No parent var adjustment is allowed while adjusted to group var (see AdjustToGroupVar(...) for more info).
            Debug.Assert(_groupVarBasedExpression == null, "_groupVarBasedExpression == null");
            Debug.Assert(_groupAggBasedExpression == null, "_groupAggBasedExpression == null");
            if (_propRefs == null)
            {
                Debug.Assert(_varBasedExpression is DbVariableReferenceExpression, "_varBasedExpression is DbVariableReferenceExpression");
                _propRefs = new List<string>(2);
                _propRefs.Add(((DbVariableReferenceExpression)_varBasedExpression).VariableName);
            }
            _varBasedExpression = parentVarRef;
            for (var i = _propRefs.Count - 1; i >= 0; --i)
            {
                _varBasedExpression = _varBasedExpression.Property(_propRefs[i]);
            }
            _propRefs.Add(parentVarRef.VariableName);
            return this;
        }
internal SourceScopeEntry AddParentVar ( DbVariableReferenceExpression parentVarRef ) { Debug . Assert ( _groupVarBasedExpression == null , " " ) ; Debug . Assert ( _groupAggBasedExpression == null , " " ) ; if ( _propRefs == null ) { Debug . Assert ( _varBasedExpression is DbVariableReferenceExpression , " " ) ; _propRefs = new List < string > ( 2 ) ; _propRefs . Add ( ( ( DbVariableReferenceExpression ) _varBasedExpression ) . VariableName ) ; } _varBasedExpression = parentVarRef ; for ( var i = _propRefs . Count - 1 ; i >= 0 ; -- i ) { _varBasedExpression = _varBasedExpression . Property ( _propRefs [ i ] ) ; } _propRefs . Add ( parentVarRef . VariableName ) ; return this ; }
Prepend  to the property chain.
Prepend to the property chain .
// // No parent var adjustment is allowed while adjusted to group var (see AdjustToGroupVar(...) for more info). //
parentVarRef
DbVariableReferenceExpression