Skip to content

fixes #829, SelectExpandQueryValidator throws when $selecting complex property - #830

Merged
xuzhg merged 2 commits into
mainfrom
issue829
Jan 31, 2023
Merged

fixes #829, SelectExpandQueryValidator throws when $selecting complex property#830
xuzhg merged 2 commits into
mainfrom
issue829

Conversation

@xuzhg

@xuzhg xuzhg commented Jan 31, 2023

Copy link
Copy Markdown
Member

fixes #829.

Comment thread src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.xml Outdated

property = propertySegment.Property;
structuredType = GetStructuredType(propertySegment.Property.Type);
structuredType = propertySegment.Property.Type.ToStructuredType();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to add a test to demonstrate that an exception is not thrown after this change?

@xuzhg xuzhg Jan 31, 2023

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToStructuredType is an extension method in ODL , this method is well-tested at ODL , the implementation doesn't throw exception.

julealgon
julealgon previously approved these changes Jan 31, 2023
@xuzhg

xuzhg commented Jan 31, 2023

Copy link
Copy Markdown
Member Author

@gathogojr I'd like to merge it and move forward it.

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.

SelectExpandQueryValidator throws when $selecting complex property (EDM loaded from CSDL)

3 participants