src/Shared/EntityFramework/Core/Query/PlanCompiler/StructuredVarInfo.cs
// <summary>
// Initialize mapping from properties to the corresponding Var
// </summary>
Initialize mapping from properties to the corresponding Var
Initialize mapping from properties to the corresponding Var
private void InitPropertyToVarMap()
        {
            if (m_propertyToVarMap == null)
            {
                m_propertyToVarMap = new Dictionary<EdmProperty, Var>();
                IEnumerator<Var> newVarEnumerator = m_newVars.GetEnumerator();
                foreach (var prop in m_newProperties)
                {
                    newVarEnumerator.MoveNext();
                    m_propertyToVarMap.Add(prop, newVarEnumerator.Current);
                }
                newVarEnumerator.Dispose();
            }
        }
private void InitPropertyToVarMap ( ) { if ( m_propertyToVarMap == null ) { m_propertyToVarMap = new Dictionary < EdmProperty , Var > ( ) ; IEnumerator < Var > newVarEnumerator = m_newVars . GetEnumerator ( ) ; foreach ( var prop in m_newProperties ) { newVarEnumerator . MoveNext ( ) ; m_propertyToVarMap . Add ( prop , newVarEnumerator . Current ) ; } newVarEnumerator . Dispose ( ) ; } }
Initialize mapping from properties to the corresponding Var
Initialize mapping from properties to the corresponding Var