private RelationalTypeMapping FindMappingForStoreTypeName(RelationalTypeMappingInfo mappingInfo) { if (mappingInfo.StoreTypeName != null) { _relationalTypeMapper.ValidateTypeName(mappingInfo.StoreTypeName); return(_relationalTypeMapper.FindMapping(mappingInfo.StoreTypeName)); } return(null); }
protected virtual void EnsureDataTypes([NotNull] IModel model) { foreach (var entityType in model.GetEntityTypes()) { foreach (var property in entityType.GetProperties()) { var dataType = _relationalExtensions.For(property).ColumnType; if (dataType != null) { _typeMapper.ValidateTypeName(dataType); } } } }