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

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
merged 1 commit into from
Mar 28, 2023

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Mar 21, 2023

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
Copy link
Member

@AndriySvyryd AndriySvyryd left a comment

Choose a reason for hiding this comment

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

Fix ShortName() instead

@maumar
Copy link
Contributor Author

maumar commented Mar 28, 2023

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