Skip to content

A provider capability stamp and a version check: a wrong wiring is refused where it is written #113

Closed

Description

@CaffeinatedCoder

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:

Change, to decide

  1. A provider capability stamp. DeclarePostgres requires 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.
  2. The kernel's UseSchemaKit() on DbContextOptionsBuilder gets 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 one UseSchemaKit().
  3. 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.
  4. 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.

Activity

  1. added this to the 11.0.0 milestone on Nov 14, 2026
  2. added
    enhancement
    package/core
    package/postgresql
    area/migrations
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/migrationsenhancementpackage/corepackage/postgresql

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions