Repository navigation
Description
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
- Both take a
SqlSpellingand carry the contract's mark (SK9001). The kernel holds one spelling, PostgreSQL's, named for what it is; a provider without one has no value to pass, so a lambda cannot be translated for it by accident. - A consumer reaches the translator through the provider's factory only:
pg.Equal(…),where:, and, for a condition shared by several entity types, a factory of the PostgreSQL package that returns aPredicate. PredicateandKeyTargetstay unmarked values a consumer reads and amends. Their remarks say thatTemplateholds the form of this preview (SchemaKit: snapshot format v2 and CodoMetis: annotation keys ship in 11.0.0; the 5.x format is read forever (D11) #9, Declarations bound to the model at finalization and stored as segments, not as a string to scan #114).
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