Ejemplo n.º 1
0
        internal static string GetMappingClosureHash(double mappingVersion, StorageEntityContainerMapping storageEntityContainerMapping)
        {
            DebugCheck.NotNull(storageEntityContainerMapping);

            var visitor = new MetadataMappingHasherVisitor(mappingVersion);

            visitor.Visit(storageEntityContainerMapping);
            return(visitor.HashValue);
        }
        internal static string GetMappingClosureHash(double mappingVersion, EntityContainerMapping entityContainerMapping, bool sortSequence = true)
        {
            DebugCheck.NotNull(entityContainerMapping);

            var visitor = new MetadataMappingHasherVisitor(mappingVersion, sortSequence);

            visitor.Visit(entityContainerMapping);
            return(visitor.HashValue);
        }
        internal static string GetMappingClosureHash(double mappingVersion, StorageEntityContainerMapping storageEntityContainerMapping)
        {
            Debug.Assert(storageEntityContainerMapping != null, "storageEntityContainerMapping is null!");

            var visitor = new MetadataMappingHasherVisitor(mappingVersion);
            visitor.Visit(storageEntityContainerMapping);
            return visitor.HashValue;
        }
        internal static string GetMappingClosureHash(double mappingVersion, StorageEntityContainerMapping storageEntityContainerMapping, bool sortSequence = true)
        {
            DebugCheck.NotNull(storageEntityContainerMapping);

            var visitor = new MetadataMappingHasherVisitor(mappingVersion, sortSequence);
            visitor.Visit(storageEntityContainerMapping);
            return visitor.HashValue;
        }