Repository navigation
test: no package here replaces EF Core's model differ or migrations SQL generator (10.x) - #339
Merged
CaffeinatedCoder merged 2 commits intoOct 19, 2026
Conversation
…QL generator EF Core resolves IMigrationsModelDiffer and IMigrationsSqlGenerator as single services, so two packages replacing one silently lose the other's DDL. From 11.0.0 on CodoMetis.EFCore.SchemaKit owns both. MigrationServiceOwnershipConventionTests fails on a shipping EF type implementing either and on any code reference to them under src/ (ReplaceService, TryAdd, ServiceDescriptor, a base list), with floors on the assemblies and registrations it finds. AGENTS.md carries the rule. Closes #334 Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit fa3616a)
Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 31380b2)
CaffeinatedCoder
deleted the
test/334-migration-service-ownership-10.x
branch
October 19, 2026 17:24
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.
Closes #334
Cherry-pick (
-x) of #337 (fa3616a, 31380b2) ontorelease/10.x, because the rule holds on both lines. Merge after #337.Closesacts only onmain, so #334 is closed by #337 or by hand.Problem
EF Core resolves
IMigrationsModelDifferandIMigrationsSqlGeneratoras single services. When two packages replace one, the last registration wins and the other's migration DDL disappears without an error. The EF packages here touch neither, and nothing kept it that way.Change
The same two commits as #337:
MigrationServiceOwnershipConventionTests(conventions project). It fails on a shipping EF type implementing either service, and on any code reference to them undersrc/(ReplaceService,TryAdd,ServiceDescriptor, a base list, a string naming them). Both checks have floors.AGENTS.mdCritical Rules entry.The pick applied cleanly. No source change.
Tests
coreOptionsBuilder.ReplaceService<IMigrationsSqlGenerator, NpgsqlMigrationsSqlGenerator>()inUseValueRangesmakes the source test fail on that line. The seeds and the floor check onmainare in test: no package here replaces EF Core's model differ or migrations SQL generator #337.🤖 Generated with Claude Code