Repository navigation
Closed
Labels
area/migrationsThe differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiringenhancementNew feature or requestpackage/coreAffects CodoMetis.EFCore.SchemaKit (the kernel)package/postgresqlAffects CodoMetis.EFCore.SchemaKit.PostgreSQL
Milestone
Description
Before preview.1. From the architecture debate of 2026-11-14; not decided. The measurements are on #34 and #35.
Problem
Three ways to wire the packages wrongly are refused late or not at all:
UseNpgsql(cs).UseSchemaKit()is the kernel's method. It compiles as soon as the kernel's namespace is in scope, the declaration passes on the kernel's stamp, and the refusal comes at the first diff, naming the package the consumer already references.- A PostgreSQL package beside a newer kernel restores and builds, and fails with
MissingMethodExceptionat the first context (Port the convention tests, MigrationHarness, release workflow and skills #35 has the pin that makes it fail at restore). - A rule meant for the consumer's model runs on whatever stands second in a diff (The first migration after the move from 5.x cannot be scaffolded when it changes anything: EF Core diffs Down with the snapshot as the target #98), and two readers may claim one annotation (Two legacy readers for one annotation read an object twice, and the migration drops what the model still declares #108).
Change, to decide
- A provider capability stamp.
DeclarePostgresrequires the stamp of the PostgreSQL package's registration, not the kernel's alone, and says which call is missing. An inactive provider that the options ignore explicitly (A declaration for another provider is an error, unless the options ignore that provider #22) stays allowed. - The kernel's
UseSchemaKit()onDbContextOptionsBuildergets a name that says it is for a provider without a package and for caller-owned setups, or leaves IntelliSense, so that a consumer of a provider package meets oneUseSchemaKit(). - A version check where the provider's extension is applied, through a member that has been there since the first preview, so that a mixed pair gets a message.
- The consumer's model is told by reference to the context's design-time model (The first migration after the move from 5.x cannot be scaffolded when it changes anything: EF Core diffs Down with the snapshot as the target #98).
Done when
Each wrong wiring fails where it is written, with the call to make, and the consumer smoke test (#34) removes each in turn.
Metadata
Metadata
Assignees
Labels
area/migrationsThe differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiringenhancementNew feature or requestpackage/coreAffects CodoMetis.EFCore.SchemaKit (the kernel)package/postgresqlAffects CodoMetis.EFCore.SchemaKit.PostgreSQL
Activity