Пример #1
0
        public static ValueComparer?GetKeyValueComparer([NotNull] this IReadOnlyProperty property)
        {
            Check.NotNull(property, nameof(property));

            return((ValueComparer?)property[CoreAnnotationNames.ValueComparer]
                   ?? property.FindTypeMapping()?.KeyComparer);
        }
Пример #2
0
 private static ValueConverter GetConverter(IReadOnlyProperty property)
 => property.FindTypeMapping()?.Converter ?? property.GetValueConverter();