Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Oct 23, 2025

Fixes #37009

@roji roji requested a review from AndriySvyryd October 23, 2025 11:54
@roji roji requested a review from a team as a code owner October 23, 2025 11:54
@roji roji enabled auto-merge (squash) October 23, 2025 12:16
@AndriySvyryd
Copy link
Member

The query implementation was correct. You'd need to change the Metadata to store and retrieve the annotation value from the type instead of the property to be consistent with owned types

@AndriySvyryd AndriySvyryd disabled auto-merge October 23, 2025 18:40
Copilot AI added a commit that referenced this pull request Oct 23, 2025
- Updated RelationalComplexPropertyExtensions to delegate Get/SetJsonPropertyName to ComplexType
- Updated RelationalTypeBaseExtensions.GetJsonPropertyName to return null for root JSON types (those with ContainerColumnName)
- Updated query pipeline files to call GetJsonPropertyName on complex property instead of complex type
- Added assertion in ComplexCollection_can_have_nested_complex_properties_mapped_to_json test
- Added HasJsonPropertyName test from PR #37018

Co-authored-by: AndriySvyryd <[email protected]>
@roji
Copy link
Member Author

roji commented Oct 24, 2025

Superceded by #37019

@roji roji closed this Oct 24, 2025
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.

JSON property name is ignored in queries involving complex JSON types

2 participants