Skip to content

The lambda factories take the provider's spelling and carry the contract's mark #132

Closed

Description

@CaffeinatedCoder

The small step of #112, decided 2026-11-14 by the maintainer: the two factories become part of the contract and take the provider's spelling now; the spelling tables stay in the kernel until the binder (#114) moves them to the provider's package.

Problem

KeyTarget.Of(LambdaExpression) and Predicate.Of<TEntity>(…) are public statics of the kernel with no experimental mark. They take no provider and return SQL spelled as Npgsql's queries spell it. A consumer on any provider can call them, and a declaration for SQL Server built through them would store PostgreSQL's text.

Change

Not in this slice

#112's third point, which stays open there: a literal compared with a converted property, and a path whose column is nullable while the lambda's type says it is not.

Done when

No unmarked public member of the kernel returns provider-specific SQL without being given the provider's spelling; ConsumerCompileTests compiles a consumer's shared condition through the provider's factory with nothing suppressed, and shows SK9001 for the kernel's.

Activity

  1. added this to the 11.0.0 milestone on Nov 14, 2026
  2. added
    enhancement
    breaking
    package/core
    package/postgresql
    on Nov 14, 2026
  3. added
    area/expression-indexes
    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/expression-indexesbreakingenhancementpackage/corepackage/postgresql

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions