Skip to content

test: no package here replaces EF Core's model differ or migrations SQL generator (10.x) - #339

Merged
CaffeinatedCoder merged 2 commits into
release/10.xfrom
test/334-migration-service-ownership-10.x
Oct 19, 2026
Merged

CaffeinatedCoder merged 2 commits into
release/10.xfrom
test/334-migration-service-ownership-10.x

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #334

Cherry-pick (-x) of #337 (fa3616a, 31380b2) onto release/10.x, because the rule holds on both lines. Merge after #337. Closes acts only on main, so #334 is closed by #337 or by hand.

Problem

EF Core resolves IMigrationsModelDiffer and IMigrationsSqlGenerator as 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 under src/ (ReplaceService, TryAdd, ServiceDescriptor, a base list, a string naming them). Both checks have floors.
  • An AGENTS.md Critical Rules entry.

The pick applied cleanly. No source change.

Tests

🤖 Generated with Claude Code

CaffeinatedCoder and others added 2 commits October 19, 2026 19:14
…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 CaffeinatedCoder added this to the 11.0.0 milestone Oct 19, 2026
@CaffeinatedCoder CaffeinatedCoder added tests Adds or changes tests only (oracles, harnesses); no library code package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime labels Oct 19, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 5b5004f into release/10.x Oct 19, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the test/334-migration-service-ownership-10.x branch October 19, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime tests Adds or changes tests only (oracles, harnesses); no library code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant