src/Shared/EntityFramework/Core/Mapping/CompressingHashBuilder.cs
// <summary>
// Several classes were renamed while creating the public mapping API. The old names were used 
// in the process of computing a mapping hash value (see AppendObjectStartDump). To avoid hash 
// value changes that invalidate pre-generated views, this method builds a dictionary that maps 
// types to their original names, and it is used to lookup the old names when the hash value is
// computed.
// </summary>
Several classes were renamed while creating the public mapping API. The old names were used
in the process of computing a mapping hash value . To avoid hash
value changes that invalidate pre-generated views, this method builds a dictionary that maps
types to their original names, and it is used to lookup the old names when the hash value is
computed.
Several classes were renamed while creating the public mapping API . The old names were used in the process of computing a mapping hash value . To avoid hash value changes that invalidate pre - generated views this method builds a dictionary that maps types to their original names and it is used to lookup the old names when the hash value is computed .
private static Dictionary<Type, string> InitializeLegacyTypeNames()
        {
            var typeNames = new Dictionary<Type, string>();
            typeNames.Add(typeof(AssociationSetMapping), "System.Data.Entity.Core.Mapping.StorageAssociationSetMapping");
            typeNames.Add(typeof(AssociationSetModificationFunctionMapping), "System.Data.Entity.Core.Mapping.StorageAssociationSetModificationFunctionMapping");
            typeNames.Add(typeof(AssociationTypeMapping), "System.Data.Entity.Core.Mapping.StorageAssociationTypeMapping");
            typeNames.Add(typeof(ComplexPropertyMapping), "System.Data.Entity.Core.Mapping.StorageComplexPropertyMapping");
            typeNames.Add(typeof(ComplexTypeMapping), "System.Data.Entity.Core.Mapping.StorageComplexTypeMapping");
            typeNames.Add(typeof(ConditionPropertyMapping), "System.Data.Entity.Core.Mapping.StorageConditionPropertyMapping");
            typeNames.Add(typeof(EndPropertyMapping), "System.Data.Entity.Core.Mapping.StorageEndPropertyMapping");
            typeNames.Add(typeof(EntityContainerMapping), "System.Data.Entity.Core.Mapping.StorageEntityContainerMapping");
            typeNames.Add(typeof(EntitySetMapping), "System.Data.Entity.Core.Mapping.StorageEntitySetMapping");
            typeNames.Add(typeof(EntityTypeMapping), "System.Data.Entity.Core.Mapping.StorageEntityTypeMapping");
            typeNames.Add(typeof(EntityTypeModificationFunctionMapping), "System.Data.Entity.Core.Mapping.StorageEntityTypeModificationFunctionMapping");
            typeNames.Add(typeof(MappingFragment), "System.Data.Entity.Core.Mapping.StorageMappingFragment");
            typeNames.Add(typeof(ModificationFunctionMapping), "System.Data.Entity.Core.Mapping.StorageModificationFunctionMapping");
            typeNames.Add(typeof(ModificationFunctionMemberPath), "System.Data.Entity.Core.Mapping.StorageModificationFunctionMemberPath");
            typeNames.Add(typeof(ModificationFunctionParameterBinding), "System.Data.Entity.Core.Mapping.StorageModificationFunctionParameterBinding");
            typeNames.Add(typeof(ModificationFunctionResultBinding), "System.Data.Entity.Core.Mapping.StorageModificationFunctionResultBinding");
            typeNames.Add(typeof(PropertyMapping), "System.Data.Entity.Core.Mapping.StoragePropertyMapping");
            typeNames.Add(typeof(ScalarPropertyMapping), "System.Data.Entity.Core.Mapping.StorageScalarPropertyMapping");
            typeNames.Add(typeof(EntitySetBaseMapping), "System.Data.Entity.Core.Mapping.StorageSetMapping");
            typeNames.Add(typeof(TypeMapping), "System.Data.Entity.Core.Mapping.StorageTypeMapping");
            return typeNames;
        }
private static Dictionary < Type , string > InitializeLegacyTypeNames ( ) { var typeNames = new Dictionary < Type , string > ( ) ; typeNames . Add ( typeof ( AssociationSetMapping ) , " " ) ; typeNames . Add ( typeof ( AssociationSetModificationFunctionMapping ) , " " ) ; typeNames . Add ( typeof ( AssociationTypeMapping ) , " " ) ; typeNames . Add ( typeof ( ComplexPropertyMapping ) , " " ) ; typeNames . Add ( typeof ( ComplexTypeMapping ) , " " ) ; typeNames . Add ( typeof ( ConditionPropertyMapping ) , " " ) ; typeNames . Add ( typeof ( EndPropertyMapping ) , " " ) ; typeNames . Add ( typeof ( EntityContainerMapping ) , " " ) ; typeNames . Add ( typeof ( EntitySetMapping ) , " " ) ; typeNames . Add ( typeof ( EntityTypeMapping ) , " " ) ; typeNames . Add ( typeof ( EntityTypeModificationFunctionMapping ) , " " ) ; typeNames . Add ( typeof ( MappingFragment ) , " " ) ; typeNames . Add ( typeof ( ModificationFunctionMapping ) , " " ) ; typeNames . Add ( typeof ( ModificationFunctionMemberPath ) , " " ) ; typeNames . Add ( typeof ( ModificationFunctionParameterBinding ) , " " ) ; typeNames . Add ( typeof ( ModificationFunctionResultBinding ) , " " ) ; typeNames . Add ( typeof ( PropertyMapping ) , " " ) ; typeNames . Add ( typeof ( ScalarPropertyMapping ) , " " ) ; typeNames . Add ( typeof ( EntitySetBaseMapping ) , " " ) ; typeNames . Add ( typeof ( TypeMapping ) , " " ) ; return typeNames ; }
Several classes were renamed while creating the public mapping API.
Several classes were renamed while creating the public mapping API .