InvalidCastException for EntityEntry.Reload() with complex type and TPH #33307
Labels
area-dbcontext
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 tried to validate the fix of issue: #32701 This works so far! Thanks!
Unfortunatly, my complex type has more fields than in the provided example.
It looks like the some properties are mistaken in order by the
Reload()
/GetOriginalValueIndex()
method?All what I did to the previous example issue code was adding two more fields to the complex type.
(I did not evaluate if this comes down to the TPH combination, or if it is a general complex type problem)
Stacktrace
New Reproduction code
Im using .NET 8.0 with EFCore 8.0.3 and VS Studio 17.8.3.
Before running the code, migrations have to be added (
Add-Migration Init
)The text was updated successfully, but these errors were encountered: