Пример #1
0
        public virtual RelationalTypeMapping GetDefaultMapping(Type clrType)
        {
            Check.NotNull(clrType, nameof(clrType));

            RelationalTypeMapping mapping;

            if (SimpleMappings.TryGetValue(clrType.UnwrapEnumType(), out mapping))
            {
                return(mapping);
            }

            throw new NotSupportedException(Strings.UnsupportedType(clrType.Name));
        }
Пример #2
0
        protected virtual RelationalTypeMapping GetCustomMapping([NotNull] IProperty property)
        {
            Check.NotNull(property, nameof(property));

            throw new NotSupportedException(Strings.UnsupportedType(property.ClrType.Name));
        }