From a905c4367b34678790e85ec4b872ef7b0e574bd5 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Sun, 2 Feb 2020 18:35:35 +0100 Subject: [PATCH] Remove obsolete builder extension APIs Closes #1116 --- .../NpgsqlEntityTypeBuilderExtensions.cs | 142 ------------- .../NpgsqlIndexBuilderExtensions.cs | 106 ---------- .../NpgsqlModelBuilderExtensions.cs | 197 ------------------ .../NpgsqlPropertyBuilderExtensions.cs | 179 ---------------- 4 files changed, 624 deletions(-) diff --git a/src/EFCore.PG/Extensions/NpgsqlEntityTypeBuilderExtensions.cs b/src/EFCore.PG/Extensions/NpgsqlEntityTypeBuilderExtensions.cs index 23a7957ae..191d76736 100644 --- a/src/EFCore.PG/Extensions/NpgsqlEntityTypeBuilderExtensions.cs +++ b/src/EFCore.PG/Extensions/NpgsqlEntityTypeBuilderExtensions.cs @@ -253,147 +253,5 @@ public static EntityTypeBuilder UseCockroachDbInterleaveInParent (EntityTypeBuilder)UseCockroachDbInterleaveInParent((EntityTypeBuilder)entityTypeBuilder, parentTableType, interleavePrefix); #endregion CockroachDB Interleave-in-parent - - #region Obsolete - - - /// - /// Configures a comment to be applied on the table. - /// - /// The builder for the entity type being configured. - /// The comment for the table. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use HasComment")] - public static EntityTypeBuilder ForNpgsqlHasComment( - [NotNull] this EntityTypeBuilder entityTypeBuilder, - [CanBeNull] string comment) - { - Check.NotNull(entityTypeBuilder, nameof(entityTypeBuilder)); - Check.NullButNotEmpty(comment, nameof(comment)); - - entityTypeBuilder.HasComment(comment); - - return entityTypeBuilder; - } - - /// - /// Configures a comment to be applied on the table. - /// - /// The entity type being configured. - /// The builder for the entity type being configured. - /// The comment for the table. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use HasComment")] - public static EntityTypeBuilder ForNpgsqlHasComment( - [NotNull] this EntityTypeBuilder entityTypeBuilder, - [CanBeNull] string comment) - where TEntity : class - => (EntityTypeBuilder)ForNpgsqlHasComment((EntityTypeBuilder)entityTypeBuilder, comment); - - /// - /// Configures using the auto-updating system column xmin as the optimistic concurrency token. - /// - /// - /// See http://www.npgsql.org/efcore/miscellaneous.html#optimistic-concurrency-and-concurrency-tokens - /// - /// The builder for the entity type being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseXminAsConcurrencyToken")] - public static EntityTypeBuilder ForNpgsqlUseXminAsConcurrencyToken([NotNull] this EntityTypeBuilder entityTypeBuilder) - => entityTypeBuilder.UseXminAsConcurrencyToken(); - - /// - /// Configures using the auto-updating system column xmin as the optimistic concurrency token. - /// - /// - /// See http://www.npgsql.org/efcore/miscellaneous.html#optimistic-concurrency-and-concurrency-tokens - /// - /// The builder for the entity type being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseXminAsConcurrencyToken")] - public static EntityTypeBuilder ForNpgsqlUseXminAsConcurrencyToken([NotNull] this EntityTypeBuilder entityTypeBuilder) - where TEntity : class - => entityTypeBuilder.UseXminAsConcurrencyToken(); - - /// - /// Sets a PostgreSQL storage parameter on the table created for this entity. - /// - /// - /// See https://www.postgresql.org/docs/current/static/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS - /// - /// The builder for the entity type being configured. - /// The name of the storage parameter. - /// The value of the storage parameter. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use SetStorageParameter")] - public static EntityTypeBuilder ForNpgsqlSetStorageParameter( - [NotNull] this EntityTypeBuilder entityTypeBuilder, string parameterName, object parameterValue) - => entityTypeBuilder.SetStorageParameter(parameterName, parameterValue); - - /// - /// Sets a PostgreSQL storage parameter on the table created for this entity. - /// - /// - /// See https://www.postgresql.org/docs/current/static/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS - /// - /// The builder for the entity type being configured. - /// The name of the storage parameter. - /// The value of the storage parameter. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use SetStorageParameter")] - public static EntityTypeBuilder ForNpgsqlSetStorageParameter( - [NotNull] this EntityTypeBuilder entityTypeBuilder, string parameterName, object parameterValue) - where TEntity : class - => entityTypeBuilder.SetStorageParameter(parameterName, parameterValue); - - /// - /// Configures the entity to use an unlogged table when targeting Npgsql. - /// - /// The builder for the entity type being configured. - /// True to configure the entity to use an unlogged table; otherwise, false. - /// - /// The same builder instance so that multiple calls can be chained. - /// - /// - /// See: https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED - /// - [Obsolete("Use IsUnlogged")] - public static EntityTypeBuilder ForNpgsqlIsUnlogged([NotNull] this EntityTypeBuilder entityTypeBuilder, bool isUnlogged = true) - => entityTypeBuilder.IsUnlogged(isUnlogged); - - /// - /// Configures the mapped table to use an unlogged table when targeting Npgsql. - /// - /// The builder for the entity type being configured. - /// True to configure the entity to use an unlogged table; otherwise, false. - /// - /// The same builder instance so that multiple calls can be chained. - /// - /// - /// See: https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED - /// - [Obsolete("Use IsUnlogged")] - public static EntityTypeBuilder ForNpgsqlIsUnlogged( - [NotNull] this EntityTypeBuilder entityTypeBuilder, - bool isUnlogged = true) - where TEntity : class - => entityTypeBuilder.IsUnlogged(isUnlogged); - - [Obsolete("Use UseCockroachDbInterleaveInParent")] - public static EntityTypeBuilder ForCockroachDbInterleaveInParent( - [NotNull] this EntityTypeBuilder entityTypeBuilder, - [NotNull] Type parentTableType, - [NotNull] List interleavePrefix) - => entityTypeBuilder.UseCockroachDbInterleaveInParent(parentTableType, interleavePrefix); - - [Obsolete("Use UseCockroachDbInterleaveInParent")] - public static EntityTypeBuilder ForCockroachDbInterleaveInParent( - [NotNull] this EntityTypeBuilder entityTypeBuilder, - [NotNull] Type parentTableType, - [NotNull] List interleavePrefix) - where TEntity : class - => entityTypeBuilder.UseCockroachDbInterleaveInParent(parentTableType, interleavePrefix); - - #endregion Obsolete } } diff --git a/src/EFCore.PG/Extensions/NpgsqlIndexBuilderExtensions.cs b/src/EFCore.PG/Extensions/NpgsqlIndexBuilderExtensions.cs index 31bac7741..5bae2a98e 100644 --- a/src/EFCore.PG/Extensions/NpgsqlIndexBuilderExtensions.cs +++ b/src/EFCore.PG/Extensions/NpgsqlIndexBuilderExtensions.cs @@ -635,111 +635,5 @@ public static bool CanSetIsCreatedConcurrently( } #endregion Created concurrently - - #region Obsolete - - /// - /// The PostgreSQL index method to be used. Null selects the default (currently btree). - /// - /// - /// http://www.postgresql.org/docs/current/static/sql-createindex.html - /// - /// The builder for the index being configured. - /// The name of the index. - /// A builder to further configure the index. - [Obsolete("Use HasMethod")] - public static IndexBuilder ForNpgsqlHasMethod([NotNull] this IndexBuilder indexBuilder, [CanBeNull] string method) - => indexBuilder.HasMethod(method); - - /// - /// The PostgreSQL index operators to be used. - /// - /// - /// https://www.postgresql.org/docs/current/static/indexes-opclass.html - /// - /// The builder for the index being configured. - /// The operators to use for each column. - /// A builder to further configure the index. - [Obsolete("Use HasOperators")] - public static IndexBuilder ForNpgsqlHasOperators([NotNull] this IndexBuilder indexBuilder, [CanBeNull, ItemNotNull] params string[] operators) - => indexBuilder.HasOperators(operators); - - /// - /// The PostgreSQL index collation to be used. - /// - /// - /// https://www.postgresql.org/docs/current/static/indexes-collations.html - /// - /// The builder for the index being configured. - /// The sort options to use for each column. - /// A builder to further configure the index. - [Obsolete("Use HasCollation")] - public static IndexBuilder ForNpgsqlHasCollation([NotNull] this IndexBuilder indexBuilder, [CanBeNull, ItemNotNull] params string[] values) - => indexBuilder.HasCollation(values); - - /// - /// The PostgreSQL index sort ordering to be used. - /// - /// - /// https://www.postgresql.org/docs/current/static/indexes-ordering.html - /// - /// The builder for the index being configured. - /// The sort order to use for each column. - /// A builder to further configure the index. - [Obsolete("Use HasSortOrder")] - public static IndexBuilder ForNpgsqlHasSortOrder([NotNull] this IndexBuilder indexBuilder, [CanBeNull] params SortOrder[] values) - => indexBuilder.HasSortOrder(values); - - /// - /// The PostgreSQL index NULL sort ordering to be used. - /// - /// - /// https://www.postgresql.org/docs/current/static/indexes-ordering.html - /// - /// The builder for the index being configured. - /// The sort order to use for each column. - /// A builder to further configure the index. - [Obsolete("Use HasNullSortOrder")] - public static IndexBuilder ForNpgsqlHasNullSortOrder([NotNull] this IndexBuilder indexBuilder, [CanBeNull] params NullSortOrder[] values) - => indexBuilder.HasNullSortOrder(values); - - /// - /// Adds an INCLUDE clause to the index definition with the specified property names. - /// This clause specifies a list of columns which will be included as a non-key part in the index. - /// - /// - /// https://www.postgresql.org/docs/current/sql-createindex.html - /// - /// The builder for the index being configured. - /// An array of property names to be used in INCLUDE clause. - /// A builder to further configure the index. - [Obsolete("Use IncludeProperties")] - public static IndexBuilder ForNpgsqlInclude([NotNull] this IndexBuilder indexBuilder, [NotNull, ItemNotNull] params string[] propertyNames) - => indexBuilder.IncludeProperties(propertyNames); - - /// - /// Adds an INCLUDE clause to the index definition with property names from the specified expression. - /// This clause specifies a list of columns which will be included as a non-key part in the index. - /// - /// - /// https://www.postgresql.org/docs/current/sql-createindex.html - /// - /// The builder for the index being configured. - /// - /// - /// A lambda expression representing the property(s) to be included in the INCLUDE clause - /// (blog => blog.Url). - /// - /// - /// If multiple properties are to be included then specify an anonymous type including the - /// properties (post => new { post.Title, post.BlogId }). - /// - /// - /// A builder to further configure the index. - [Obsolete("Use IncludeProperties")] - public static IndexBuilder ForNpgsqlInclude([NotNull] this IndexBuilder indexBuilder, [NotNull] Expression> includeExpression) - => indexBuilder.IncludeProperties(includeExpression); - - #endregion Obsolete } } diff --git a/src/EFCore.PG/Extensions/NpgsqlModelBuilderExtensions.cs b/src/EFCore.PG/Extensions/NpgsqlModelBuilderExtensions.cs index e556c0ef3..0149cf578 100644 --- a/src/EFCore.PG/Extensions/NpgsqlModelBuilderExtensions.cs +++ b/src/EFCore.PG/Extensions/NpgsqlModelBuilderExtensions.cs @@ -490,202 +490,5 @@ static string[] GetMemberPgNames([NotNull] INpgsqlNameTranslator nameTran .ToArray(); #endregion - - #region Obsolete - - /// - /// Configures the model to use a sequence-based hi-lo pattern to generate values for properties - /// marked as , when targeting PostgreSQL. - /// - /// The model builder. - /// The name of the sequence. - /// The schema of the sequence. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseHiLo")] - public static ModelBuilder ForNpgsqlUseSequenceHiLo([NotNull] this ModelBuilder modelBuilder, [CanBeNull] string name = null, [CanBeNull] string schema = null) - => modelBuilder.UseHiLo(name, schema); - - /// - /// Configures the model to use the PostgreSQL SERIAL feature to generate values for properties - /// marked as , when targeting PostgreSQL. This is the default - /// behavior when targeting PostgreSQL. - /// - /// The model builder. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseSerialColumns")] - public static ModelBuilder ForNpgsqlUseSerialColumns([NotNull] this ModelBuilder modelBuilder) - => modelBuilder.UseSerialColumns(); - - /// - /// - /// Configures the model to use the PostgreSQL IDENTITY feature to generate values for properties - /// marked as , when targeting PostgreSQL. Values for these - /// columns will always be generated as identity, and the application will not be able to override - /// this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The model builder. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityAlwaysColumns")] - public static ModelBuilder ForNpgsqlUseIdentityAlwaysColumns([NotNull] this ModelBuilder modelBuilder) - => modelBuilder.UseIdentityAlwaysColumns(); - - /// - /// - /// Configures the model to use the PostgreSQL IDENTITY feature to generate values for properties - /// marked as , when targeting PostgreSQL. Values for these - /// columns will be generated as identity by default, but the application will be able to override - /// this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The model builder. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityByDefaultColumns")] - public static ModelBuilder ForNpgsqlUseIdentityByDefaultColumns([NotNull] this ModelBuilder modelBuilder) - => modelBuilder.UseIdentityByDefaultColumns(); - - /// - /// - /// Configures the model to use the PostgreSQL IDENTITY feature to generate values for properties - /// marked as , when targeting PostgreSQL. Values for these - /// columns will be generated as identity by default, but the application will be able to override - /// this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The model builder. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityColumns")] - public static ModelBuilder ForNpgsqlUseIdentityColumns([NotNull] this ModelBuilder modelBuilder) - => modelBuilder.UseIdentityColumns(); - - /// - /// Registers a user-defined enum type in the model. - /// - /// The model builder in which to create the enum type. - /// The schema in which to create the enum type. - /// The name of the enum type to create. - /// The enum label values. - /// - /// The updated . - /// - /// - /// See: https://www.postgresql.org/docs/current/static/datatype-enum.html - /// - /// builder - [Obsolete("Use HasPostgresEnum")] - public static ModelBuilder ForNpgsqlHasEnum( - [NotNull] this ModelBuilder modelBuilder, - [CanBeNull] string schema, - [NotNull] string name, - [NotNull] string[] labels) - => modelBuilder.HasPostgresEnum(schema, name, labels); - - /// - /// Registers a user-defined enum type in the model. - /// - /// The model builder in which to create the enum type. - /// The name of the enum type to create. - /// The enum label values. - /// - /// The updated . - /// - /// - /// See: https://www.postgresql.org/docs/current/static/datatype-enum.html - /// - /// builder - [Obsolete("Use HasPostgresEnum")] - public static ModelBuilder ForNpgsqlHasEnum( - [NotNull] this ModelBuilder modelBuilder, - [NotNull] string name, - [NotNull] string[] labels) - => modelBuilder.HasPostgresEnum(name, labels); - - /// - /// Registers a user-defined enum type in the model. - /// - /// The model builder in which to create the enum type. - /// The schema in which to create the enum type. - /// The name of the enum type to create. - /// - /// The translator for name and label inference. - /// Defaults to . - /// - /// - /// The updated . - /// - /// - /// See: https://www.postgresql.org/docs/current/static/datatype-enum.html - /// - /// builder - [Obsolete("Use HasPostgresEnum")] - public static ModelBuilder ForNpgsqlHasEnum( - [NotNull] this ModelBuilder modelBuilder, - [CanBeNull] string schema = null, - [CanBeNull] string name = null, - [CanBeNull] INpgsqlNameTranslator nameTranslator = null) - where TEnum : struct, Enum - => modelBuilder.HasPostgresEnum(schema, name, nameTranslator); - - [Obsolete("Use UseDatabaseTemplate")] - public static ModelBuilder HasDatabaseTemplate([NotNull] this ModelBuilder modelBuilder, [NotNull] string templateDatabaseName) - => modelBuilder.UseDatabaseTemplate(templateDatabaseName); - - /// - /// Registers a user-defined range type in the model. - /// - /// The model builder on which to create the range type. - /// The schema in which to create the range type. - /// The name of the range type to be created. - /// The subtype (or element type) of the range - /// - /// An optional PostgreSQL function which converts range values to a canonical form. - /// - /// Used to specify a non-default operator class. - /// Used to specify a non-default collation in the range's order. - /// - /// An optional PostgreSQL function taking two values of the subtype type as argument, and return a double - /// precision value representing the difference between the two given values. - /// - /// - /// See https://www.postgresql.org/docs/current/static/rangetypes.html, - /// https://www.postgresql.org/docs/current/static/sql-createtype.html, - /// - [Obsolete("Use HasPostgresRange")] - public static ModelBuilder ForNpgsqlHasRange( - [NotNull] this ModelBuilder modelBuilder, - [CanBeNull] string schema, - [NotNull] string name, - [NotNull] string subtype, - string canonicalFunction = null, - string subtypeOpClass = null, - string collation = null, - string subtypeDiff = null) - => modelBuilder.HasPostgresRange(schema, name, subtype, canonicalFunction, subtype, collation, subtypeDiff); - - /// - /// Registers a user-defined range type in the model. - /// - /// The model builder on which to create the range type. - /// The name of the range type to be created. - /// The subtype (or element type) of the range - /// - /// See https://www.postgresql.org/docs/current/static/rangetypes.html, - /// https://www.postgresql.org/docs/current/static/sql-createtype.html, - /// - [Obsolete("Use HasPostgresRange")] - public static ModelBuilder ForNpgsqlHasRange( - [NotNull] this ModelBuilder modelBuilder, - [NotNull] string name, - [NotNull] string subtype) - => modelBuilder.HasPostgresRange(name, subtype); - - [Obsolete("Use UseTablespace")] - public static ModelBuilder ForNpgsqlUseTablespace([NotNull] this ModelBuilder modelBuilder, [NotNull] string tablespace) - => modelBuilder.UseTablespace(tablespace); - - #endregion Obsolete } } diff --git a/src/EFCore.PG/Extensions/NpgsqlPropertyBuilderExtensions.cs b/src/EFCore.PG/Extensions/NpgsqlPropertyBuilderExtensions.cs index 5a52a3d51..d607eadd8 100644 --- a/src/EFCore.PG/Extensions/NpgsqlPropertyBuilderExtensions.cs +++ b/src/EFCore.PG/Extensions/NpgsqlPropertyBuilderExtensions.cs @@ -611,184 +611,5 @@ public static bool CanSetIdentityOptions( } #endregion Identity options - - #region Obsolete - - /// - /// Configures a comment to be applied to the column. - /// - /// The builder for the property being configured. - /// The comment for the column. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use HasComment")] - public static PropertyBuilder ForNpgsqlHasComment( - [NotNull] this PropertyBuilder propertyBuilder, - [CanBeNull] string comment) - { - Check.NotNull(propertyBuilder, nameof(propertyBuilder)); - Check.NullButNotEmpty(comment, nameof(comment)); - - propertyBuilder.HasComment(comment); - - return propertyBuilder; - } - - /// - /// Configures a comment to be applied to the column. - /// - /// The entity type being configured. - /// The builder for the property being configured. - /// The comment for the column. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use HasComment")] - public static PropertyBuilder ForNpgsqlHasComment( - [NotNull] this PropertyBuilder propertyBuilder, - [CanBeNull] string comment) - => (PropertyBuilder)ForNpgsqlHasComment((PropertyBuilder)propertyBuilder, comment); - - /// - /// Configures the property to use a sequence-based hi-lo pattern to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// - /// The builder for the property being configured. - /// The comment of the sequence. - /// The schema of the sequence. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseHiLo")] - public static PropertyBuilder ForNpgsqlUseSequenceHiLo([NotNull] this PropertyBuilder propertyBuilder, [CanBeNull] string name = null, [CanBeNull] string schema = null) - => propertyBuilder.UseHiLo(name, schema); - - /// - /// Configures the property to use a sequence-based hi-lo pattern to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// - /// The builder for the property being configured. - /// The comment of the sequence. - /// The schema of the sequence. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseHiLo")] - public static PropertyBuilder ForNpgsqlUseSequenceHiLo([NotNull] this PropertyBuilder propertyBuilder, [CanBeNull] string name = null, [CanBeNull] string schema = null) - => propertyBuilder.UseHiLo(name, schema); - - /// - /// Configures the property to use the PostgreSQL SERIAL feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// - /// The type of the property being configured. - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseSerialColumn")] - public static PropertyBuilder UseNpgsqlSerialColumn([NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseSerialColumn(); - - /// - /// Configures the property to use the PostgreSQL SERIAL feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// - /// The type of the property being configured. - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseSerialColumn")] - public static PropertyBuilder UseNpgsqlSerialColumn( - [NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseSerialColumn(); - - /// - /// - /// Configures the property to use the PostgreSQL IDENTITY feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// Values for this property will always be generated as identity, and the application will not be able - /// to override this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityAlwaysColumn")] - public static PropertyBuilder UseNpgsqlIdentityAlwaysColumn([NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseIdentityAlwaysColumn(); - - /// - /// - /// Configures the property to use the PostgreSQL IDENTITY feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// Values for this property will always be generated as identity, and the application will not be able - /// to override this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityAlwaysColumn")] - public static PropertyBuilder UseNpgsqlIdentityAlwaysColumn( - [NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseIdentityAlwaysColumn(); - - /// - /// - /// Configures the property to use the PostgreSQL IDENTITY feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// Values for this property will be generated as identity by default, but the application will be able - /// to override this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityByDefaultColumn")] - public static PropertyBuilder UseNpgsqlIdentityByDefaultColumn([NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseIdentityByDefaultColumn(); - - /// - /// - /// Configures the property to use the PostgreSQL IDENTITY feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// Values for this property will be generated as identity by default, but the application will be able - /// to override this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The type of the property being configured. - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityByDefaultColumn")] - public static PropertyBuilder UseNpgsqlIdentityByDefaultColumn( - [NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseIdentityByDefaultColumn(); - - /// - /// - /// Configures the property to use the PostgreSQL IDENTITY feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// Values for this property will be generated as identity by default, but the application will be able - /// to override this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityColumn")] - public static PropertyBuilder UseNpgsqlIdentityColumn( - [NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseIdentityColumn(); - - /// - /// - /// Configures the property to use the PostgreSQL IDENTITY feature to generate values for new entities, - /// when targeting PostgreSQL. This method sets the property to be . - /// Values for this property will be generated as identity by default, but the application will be able - /// to override this behavior by providing a value. - /// - /// Available only starting PostgreSQL 10. - /// - /// The type of the property being configured. - /// The builder for the property being configured. - /// The same builder instance so that multiple calls can be chained. - [Obsolete("Use UseIdentityColumn")] - public static PropertyBuilder UseNpgsqlIdentityColumn( - [NotNull] this PropertyBuilder propertyBuilder) - => propertyBuilder.UseIdentityColumn(); - - #endregion Obsolete } }