src/Shared/EntityFramework/Core/Query/InternalTrees/OpCopier.cs
// <summary>
// Get the "cloned" var for a given Var.
// If no cloned var exists, return the input Var itself
// </summary>
// <param name="v"> The Var for which the cloned Var should be retrieved </param>
// <returns> The cloned Var that corresponds to the specified Var if this OpCopier is cloning across two different Commands; otherwise it is safe to return the specified Var itself </returns>
Get the "cloned" var for a given Var.
If no cloned var exists, return the input Var itself
Get the " cloned " var for a given Var . If no cloned var exists return the input Var itself
private Var GetMappedVar(Var v)
        {
            Var mappedVar;
             Return a mapping if there is one
            if (m_varMap.TryGetValue(v, out mappedVar))
            {
                return mappedVar;
            }
             No mapping found.
             If we're cloning to a different command, this is an error
            if (m_destCmd != m_srcCmd)
            {
                throw EntityUtil.InternalError(EntityUtil.InternalErrorCode.UnknownVar, 6, null);
            }
             otherwise return the current Var itself
            return v;
        }
private Var GetMappedVar ( Var v ) { Var mappedVar ; if ( m_varMap . TryGetValue ( v , out mappedVar ) ) { return mappedVar ; } if ( m_destCmd != m_srcCmd ) { throw EntityUtil . InternalError ( EntityUtil . InternalErrorCode . UnknownVar , 6 , null ) ; } return v ; }
Get the "cloned" var for a given Var.
Get the " cloned " var for a given Var .
// // Return a mapping if there is one // // // No mapping found. // If we're cloning to a different command, this is an error // // // otherwise return the current Var itself //
The cloned Var that corresponds to the specified Var if this OpCopier is cloning across two different Commands; otherwise it is safe to return the specified Var itself
The cloned Var that corresponds to the specified Var if this OpCopier is cloning across two different Commands ; otherwise it is safe to return the specified Var itself
v
Var
The Var for which the cloned Var should be retrieved
The Var for which the cloned Var should be retrieved