src/EFCore.MySql/Migrations/Internal/MySqlMigrationsAnnotationProvider.cs
/// <summary>
///     This API supports the Entity Framework Core infrastructure and is not intended to be used
///     directly from your code. This API may change or be removed in future releases.
/// </summary>
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code. This API may change or be removed in future releases.
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code . This API may change or be removed in future releases .
public override IEnumerable<IAnnotation> For(IIndex index)
        {
            var isFullText = index.MySql().IsFullText;
            if (isFullText.HasValue && isFullText.Value)
            {
                yield return new Annotation(
                    MySqlAnnotationNames.FullTextIndex,
                    "FULLTEXT");
            }
            var isSpatial = index.MySql().IsSpatial;
            if (isSpatial.HasValue && isSpatial.Value)
            {
                yield return new Annotation(
                    MySqlAnnotationNames.SpatialIndex,
                    "SPATIAL");
            }
            foreach (var annotation in ForRemove(index))
            {
                yield return annotation;
            }
        }
public override IEnumerable < IAnnotation > For ( IIndex index ) { var isFullText = index . MySql ( ) . IsFullText ; if ( isFullText . HasValue && isFullText . Value ) { yield return new Annotation ( MySqlAnnotationNames . FullTextIndex , " " ) ; } var isSpatial = index . MySql ( ) . IsSpatial ; if ( isSpatial . HasValue && isSpatial . Value ) { yield return new Annotation ( MySqlAnnotationNames . SpatialIndex , " " ) ; } foreach ( var annotation in ForRemove ( index ) ) { yield return annotation ; } }
This API supports the Entity Framework Core infrastructure and is not intended to be used
directly from your code.
This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code .
index
IIndex