protected override void ProcessIndexAnnotations(
            Dictionary <string, object?> annotations,
            IIndex index,
            RuntimeIndex runtimeIndex,
            bool runtime)
        {
            base.ProcessIndexAnnotations(annotations, index, runtimeIndex, runtime);

            if (!runtime)
            {
                annotations.Remove(SqlServerAnnotationNames.Clustered);
                annotations.Remove(SqlServerAnnotationNames.CreatedOnline);
                annotations.Remove(SqlServerAnnotationNames.Include);
                annotations.Remove(SqlServerAnnotationNames.FillFactor);
            }
        }
Esempio n. 2
0
    /// <inheritdoc/>
    protected override void ProcessIndexAnnotations(
        Dictionary <string, object?> annotations,
        IIndex index,
        RuntimeIndex runtimeIndex,
        bool runtime)
    {
        base.ProcessIndexAnnotations(annotations, index, runtimeIndex, runtime);

        if (!runtime)
        {
            annotations.Remove(NpgsqlAnnotationNames.IndexMethod);
            annotations.Remove(NpgsqlAnnotationNames.IndexOperators);
            annotations.Remove(NpgsqlAnnotationNames.IndexSortOrder);
            annotations.Remove(NpgsqlAnnotationNames.IndexNullSortOrder);
            annotations.Remove(NpgsqlAnnotationNames.IndexInclude);
            annotations.Remove(NpgsqlAnnotationNames.CreatedConcurrently);
        }
    }