Skip to content

Commit

Permalink
Avoid StackOverflowException in IndexBuilder.HasName() (dotnet#21745)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd committed Jul 23, 2020
1 parent b76b839 commit d1c80ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static IndexBuilder<TEntity> HasDatabaseName<TEntity>([NotNull] this Inde
/// <returns> A builder to further configure the index. </returns>
[Obsolete("Use HasDatabaseName() instead.")]
public static IndexBuilder<TEntity> HasName<TEntity>([NotNull] this IndexBuilder<TEntity> indexBuilder, [CanBeNull] string name)
=> indexBuilder.HasName(name);
=> indexBuilder.HasDatabaseName(name);

/// <summary>
/// Configures the name of the index in the database when targeting a relational database.
Expand Down

0 comments on commit d1c80ee

Please sign in to comment.