Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return flattened properties of complex types in correct order #33393

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

ajcvickers
Copy link
Member

Fixes #33307

Property indexes are created such that properties of derived types are at the end--it has to be this way so that the indexes for properties on the base type remain the same for all derived types. However, when getting the flattened properties, we were returning them in a different order, such that properties with indexes for inherited type were returned in the middle of the list. This change instead returns the properties in the same order as their indexes.

Fixes #33307

Property indexes are created such that properties of derived types are at the end--it has to be this way so that the indexes for properties on the base type remain the same for all derived types. However, when getting the flattened properties, we were returning them in a different order, such that properties with indexes for inherited type were returned in the middle of the list. This change instead returns the properties in the same order as their indexes.
@ajcvickers ajcvickers requested a review from a team March 25, 2024 14:41
@ajcvickers ajcvickers merged commit 62a8b12 into main Mar 26, 2024
7 checks passed
@ajcvickers ajcvickers deleted the 240325_Reload branch March 26, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InvalidCastException for EntityEntry.Reload() with complex type and TPH
2 participants