'The object has been removed from the model.' when building model #25138
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
I am getting 'The object has been removed from the model.' when building a model. I have simplified my scenario down and found that this is happening when configuring the second owned type, each of which are the same .NET type, and the first owned type is using
HasIndex
.Code to Reproduce
Stack Trace
Provider and version information
Regression: Works in 5.0.7
EF Core version: 6.0.0-preview.5.21301.9
Database provider: Microsoft.EntityFrameworkCore.SqlServer or Microsoft.EntityFrameworkCore.InMemoryDatabase
Target framework: .NET 6.0.100-preview.5.21302.13
Operating system: Windows 10
IDE: Visual Studio 2019, Visual Studio 2022, LinqPad
The text was updated successfully, but these errors were encountered: