Repository navigation
Fix UUID suffix handling in scaffolded navigation names - #38929
Merged
AndriySvyryd merged 1 commit intoSep 10, 2026
Merged
Conversation
- Handle UUID suffixes when deriving scaffolded navigation names - Add regression tests for UUID foreign key names Fixes dotnet#38767
Contributor
Author
|
@dotnet-policy-service agree |
AndriySvyryd
approved these changes
Sep 10, 2026
AndriySvyryd
left a comment
Member
There was a problem hiding this comment.
Thanks for your contribution!
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused implementation correctly addresses the reported naming defect and includes regression coverage.
Pull request overview
Fixes scaffolded navigation names by correctly stripping Uuid suffixes.
Changes:
- Treats
UuidlikeGuidduring suffix removal. - Adds regression tests for
FileUuidandQuestionUuid.
File summaries
| File | Description |
|---|---|
src/EFCore.Design/Scaffolding/Internal/CandidateNamingService.cs |
Adds case-insensitive Uuid suffix handling. |
test/EFCore.Design.Tests/Scaffolding/Internal/CandidateNamingServiceTest.cs |
Verifies expected navigation names. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
This was referenced Sep 10, 2026
AndriySvyryd
pushed a commit
that referenced
this pull request
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #38767
Summary
Uuidsuffixes when deriving scaffolded navigation property names.FileUuidandQuestionUuid.Before this change,
CandidateNamingService.StripId()handled theGuidsuffix specially, butUuidwas treated as a regularIdsuffix, resulting in names such asFileUuandQuestionUu.Tests
CandidateNamingServiceTest: 14/14 passed.EFCore.Design.Testsrun has one unrelated failure inTextTemplatingModelGeneratorTest.GenerateModel_reports_compiler_errorson my Windows environment.I've read the guidelines for contributing and seen the walkthrough
I've posted a comment on an issue with a detailed description of how I am planning to contribute and got approval from a member of the team
The code builds and tests pass locally (also verified by our automated build checks)
Commit messages follow this format:
Summary of the changes
Fixes #bugnumber
Tests for the changes have been added (for bug fixes / features)
Code follows the same patterns and style as existing code in this repo