src/Shared/EntityFramework/Core/Query/PlanCompiler/RootTypeInfo.cs
// <summary>
// Add a mapping from the propertyRef (of the old type) to the
// corresponding property in the new type.
// NOTE: Only to be used by StructuredTypeInfo
// </summary>
Add a mapping from the propertyRef (of the old type) to the
corresponding property in the new type.
NOTE: Only to be used by StructuredTypeInfo
Add a mapping from the propertyRef ( of the old type ) to the corresponding property in the new type . NOTE : Only to be used by StructuredTypeInfo
internal void AddPropertyMapping(PropertyRef propertyRef, EdmProperty newProperty)
        {
            m_propertyMap[propertyRef] = newProperty;
            if (propertyRef is TypeIdPropertyRef)
            {
                m_typeIdProperty = newProperty;
            }
            else if (propertyRef is EntitySetIdPropertyRef)
            {
                m_entitySetIdProperty = newProperty;
            }
            else if (propertyRef is NullSentinelPropertyRef)
            {
                m_nullSentinelProperty = newProperty;
            }
        }
internal void AddPropertyMapping ( PropertyRef propertyRef , EdmProperty newProperty ) { m_propertyMap [ propertyRef ] = newProperty ; if ( propertyRef is TypeIdPropertyRef ) { m_typeIdProperty = newProperty ; } else if ( propertyRef is EntitySetIdPropertyRef ) { m_entitySetIdProperty = newProperty ; } else if ( propertyRef is NullSentinelPropertyRef ) { m_nullSentinelProperty = newProperty ; } }
Add a mapping from the propertyRef (of the old type) to the
corresponding property in the new type.
Add a mapping from the propertyRef ( of the old type ) to the corresponding property in the new type .
propertyRef
PropertyRef
newProperty
EdmProperty