Repository navigation
[8.0] Preserve inherited HiLo sequences in model snapshots - #4033
Merged
Merged
Conversation
Backport #4031 for #3613. Resolve property-level HiLo snapshot arguments from model configuration while preserving explicit property overrides. (cherry picked from commit bde0e12) Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2cb7624f-a080-43fe-b454-f33de1b9f32d
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.
Backport of #4031 (commit bde0e12) to
hotfix/8.0.12.Fixes #3613.
Resolve property-level HiLo snapshot arguments from the model's sequence name/schema when no property override is present. This prevents unwanted default sequences, repeated
DropSequencemigrations, and model mismatches without changing publicUseHiLosemantics.The fix and regression tests are unchanged from the original commit. Coverage includes all four inherited name/schema combinations and explicit property overrides.
Validation: all four inherited-sequence regression cases fail before the fix; all 21
NpgsqlAnnotationCodeGeneratorTestcases pass after it using:dotnet test test/EFCore.PG.Tests/EFCore.PG.Tests.csproj --no-restore --filter FullyQualifiedName~NpgsqlAnnotationCodeGeneratorTest --verbosity quiet