HasName() throws System.StackOverflowException #21734
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
HasName() is marked "obsolete", but should not result in
System.StackOverflowException
HResult=0x800703E9
Message=Exception of type 'System.StackOverflowException' was thrown.
Steps to reproduce
protected override void OnModelCreating(ModelBuilder mb)
{
mb.Entity().HasIndex(x => x.FreeSeats).HasName("Index_FreeSeats");
}
Not happening if I use HasDatabaseName()
Further technical details
EF Core version: 5.0 Preview 7
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0 Preview 6 und 7
Operating system: Windows 10
IDE: Visual Studio 2019 16.6
The text was updated successfully, but these errors were encountered: