Ejemplo n.º 1
0
        public String GetRegistrationName(TypeMapping typeMapping)
        {
            var namedMappingRequested = configurationDetails.IsMultimap(typeMapping.From) || configurationDetails.IsNamedMapping(typeMapping.To);
            var namedMappingRequired  = mappingBehaviors.HasFlag(MappingBehaviors.MultimapByDefault) && multimapTypes.Contains(typeMapping.From);

            return((namedMappingRequested || namedMappingRequired) ? configurationDetails.GetNamedMapping(typeMapping)
                                                                                                                                   : null);
        }