Skip to content

Fix to #30115 - IndexOutOfRangeException in CreateNavigationExpansionExpression(Expression sourceExpression, IEntityType entityType) / get_Chars(Int32 index) when EF class named "<>f__AnonymousType01Child" in 7.0.2 version - #30537

Merged
maumar merged 1 commit into
mainfrom
fix30115
Mar 28, 2023

Conversation

@maumar

@maumar maumar commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

Check if ShortName returns empty string, and if so use token parameter name.

Fixes #30115

@maumar
maumar requested review from a team and roji and removed request for a team March 21, 2023 07:18
Comment thread src/EFCore/Query/Internal/NavigationExpandingExpressionVisitor.cs Outdated

@AndriySvyryd AndriySvyryd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fix ShortName() instead

@maumar

maumar commented Mar 28, 2023

Copy link
Copy Markdown
Contributor Author

updated

…Expression(Expression sourceExpression, IEntityType entityType) / get_Chars(Int32 index) when EF class named "<>f__AnonymousType01Child" in 7.0.2 version

Adjusting ShortName to trim "<>" from the start of the type name.

Fixes #30115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants