You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using TPH for a set of entities where columns of derived entities sometimes gets combined in a complex query. For this query, I need to add an index that includes these columns. I expected the following fluent API setup to work, but it doesn't.
The include property 'UniquePropertyForDerivedEntity1' specified on the index {'BaseProperty1', 'BaseProperty2 '} was not found on entity type 'BaseEntity'.
I've tried using string parameters instead of an expression, but get the same error.
How do I include additional columns from different derived entities into a single index without manually hacking the migration files?
I'm using TPH for a set of entities where columns of derived entities sometimes gets combined in a complex query. For this query, I need to add an index that includes these columns. I expected the following fluent API setup to work, but it doesn't.
But this fails with
I've tried using string parameters instead of an expression, but get the same error.
How do I include additional columns from different derived entities into a single index without manually hacking the migration files?
Include provider and version information
EF Core version: 6 preview 5
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
The text was updated successfully, but these errors were encountered: