Skip to content

The kernel's UseSchemaKit() on DbContextOptionsBuilder: keep its name, rename it, or take it out of IntelliSense #141

Closed

Description

@CaffeinatedCoder

Decided 2026-11-14 by the maintainer: option 1, the name stays. The kernel's UseSchemaKit() is neither renamed nor hidden; the guard is the refusal of #113 where an object is declared. Recorded in the plan's section 7 by #142.


Split off #113 (its point 2), which is the one part of it that is a decision about the public surface.

Problem

A consumer of the PostgreSQL package meets two UseSchemaKit(): the package's on NpgsqlDbContextOptionsBuilder, which is the one to call, and the kernel's on DbContextOptionsBuilder, which compiles as soon as the kernel's namespace is imported. UseNpgsql(cs).UseSchemaKit() is the kernel's.

Since #113 the mistake is refused where the first object is declared, with the package to register. What is left is that the wrong call is still offered, under the same name, and that a context which declares nothing over a 5.x snapshot is refused only at the first diff.

The kernel's method is not a consumer's call in any setup that renders something: a provider package calls it from its own registration, and a third party's contributor package would do the same.

Options

  1. Keep the name. The refusal of A provider capability stamp and a version check: a wrong wiring is refused where it is written #113 is the guard. Nothing changes in the documents.
  2. Rename the kernel's method to say what it is for (a provider without a package, a package's own registration). A consumer of a provider package then sees one UseSchemaKit(). It changes the plan's "one wiring point, UseSchemaKit()" for the kernel alone and every document that shows the kernel's call.
  3. [EditorBrowsable(Never)] on the kernel's method. It leaves completion lists for a package reference; it still compiles when typed, and an IDE shows it within the defining solution.

Done when

The decision is recorded here and in the plan, and the guide's table of missed steps (docs/moving-from-complexindexes-5x.md) no longer says the name is open. A rename has to land before 11.0.0; whether before preview.1 is part of the decision.

Activity

  1. added this to the 11.0.0 milestone on Nov 14, 2026
  2. added
    enhancement
    package/core
    area/migrations
    on Nov 14, 2026
  3. added a commit that references this issue on Nov 14, 2026
    6bb0c77
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/core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions