Repository navigation
Description
Decided 2026-11-28, after preview.2: preview.3 is the preview a PostgreSQL project on 5.x can move to, and the SQL Server package moves to preview.4. This replaces the order in the paragraph below; the plan's section 6 says the same since #251.
Why: preview.2 shipped without its exit criterion, the replay of 5.x's migrations (#28), and that is what stands between a 5.x project and a trial. Measured on the published preview.2 with the snapshots of a real application on 5.6.0 (no TPC, no temporal constraints, no JSON documents): every snapshot is read, every object 5.x declared is created, and unique indexes on members of complex properties, exclusion constraints with a lambda's condition and with a convention's, and an index on lower() of a value object move with no operations, Up and Down. Its migrations with an index on an expression are refused on a fresh database. Not measured: the catalog on a live server.
preview.3:
- Legacy replay: migrations scaffolded by 5.x apply to a fresh database #28, the PostgreSQL slice (Legacy replay on PostgreSQL: an index 5.x scaffolded with CustomIndex:IndexParts applies to a new database #252, merged with feat: a migration 5.x scaffolded with an index on an expression is replayed on PostgreSQL #253 on 2026-11-28): a
CreateIndexthat 5.x scaffolded withCustomIndex:IndexPartsapplies on a fresh database - Cross-tests with CodoMetis.ValueRanges: range and multirange columns as exclusion-constraint operands #4, the cross-tests with CodoMetis.ValueRanges
11.0.0-preview.1(merged with test: cross-tests with CodoMetis.ValueRanges, on PostgreSQL 16 and 18 #258 on 2026-11-28): a column ValueRanges maps is the same as Npgsql's own range in the migration, the create script and the catalog, on PostgreSQL 16 and 18. Found by it: An exclusion constraint cannot start with a range of another library: the factory has no unchecked operator #257. The first outside contributor, the satellite with the typedOverlaps, is New package CodoMetis.ValueRanges.EFCore.PostgreSQL.SchemaKit: typed Overlaps for range and range set columns in SchemaKit's exclusion constraints CodoMetis.ValueRanges#540 and is still to come - Catalog verifier: VerifySchemaKitAsync for the PostgreSQL kinds #30, the catalog verifier for PostgreSQL, in four slices, the last merged on 2026-11-29: spike G (Spike G: can the server say what a declared expression is, for the verifier? #255, Spike G: the server's own text for a declared object #264), the kernel's part and what the catalog states in columns (Catalog verifier: the kernel's part, existence and what the catalog states structurally #256, Catalog verifier: the kernel's part, existence and what the catalog states in columns of its own #265), expressions and conditions through a shadow (Catalog verifier: expression keys and conditions, compared through a shadow #259, feat: the verifier compares an expression key and a condition through a shadow #269), and the tests' oracle, the consumer smoke test and the READMEs (Catalog verifier: one oracle with the tests, the consumer smoke test, and the READMEs #268, feat: the verifier is one oracle with the tests, and a consumer meets it #277). SQL Server's part of the oracle stays with Oracles on live servers: catalog equivalence and behaviour #32
- The guide says a condition outside DeclarePostgres is not settled: the convention's recipe, and a test that holds it #249, found by the measurement above (merged with docs: a condition a convention adds, coming from 5.x #254 on 2026-11-28): a condition a convention adds moves with no operations, alone and beside a condition of the declaration's own
- A member of a value object is refused when a library wrote its converter as a method call #248, found by the same measurement: decided on 2026-11-28, the refusal stays and says what to write instead; merged with feat: a member behind a converter that names none is refused with what to write instead #267 on 2026-11-29. A marker that keeps an expression over such a property a lambda is A marker for a value object's column as the type it is stored as, so that an expression over it stays a lambda #266, to decide before
rc.1 - release.yml: smoke-test the packages that are published #230 (merged with test: release.yml smoke-tests the packages it publishes, and a lane has the consumer on the newest EF Core #274 on 2026-11-29):
verifyruns the consumer smoke test on the folderpublishpushes, and a lane of CI has the consumer on the newest EF Core release in the packages' range. The new step ofverifyhas not run on a runner yet: its first run is a dry run ofrelease.ymlor the tag - A 5.x index that includes a member of a value object is refused in the snapshot #263, found while measuring A member of a value object is refused when a library wrote its converter as a method call #248 (merged with fix: an included member of a value object in a 5.x snapshot is read as its property's column #273 on 2026-11-29): a 5.x index that includes a member of a value object is read as the property's column
- A member of a nullable struct value object is refused, also when its converter is written as the member #261 and A member of a value object that is an enum cannot be compared with a constant #262, found by the same measurement (merged with A member of a value object that can be null, or is an enum, is read as the column #275 on 2026-11-29): a member of a value object is read as its column where the property can be null and where the member is an enum. The same pull request fixed A member of a nullable struct complex property is refused, and one beside a member named Value is read from another column #270 and A boolean member of a value object as a condition by itself is stored without the value it compares with #271, found on the way. Left open as decisions: A value compared with a member of a value object is written by the spelling, not by the property's mapping #272 (a value through a member, written by the mapping or by the spelling) and Whether a complex property that can be null is null cannot be asked in a condition #279
- An exclusion constraint cannot start with a range of another library: the factory has no unchecked operator #257, decided on 2026-11-29 and merged with The factory starts an exclusion constraint's elements with an operator of one's own #278 the same day:
pg.WithUncheckedOperator(key, operator)starts the elements of an exclusion constraint, so the satellite of New package CodoMetis.ValueRanges.EFCore.PostgreSQL.SchemaKit: typed Overlaps for range and range set columns in SchemaKit's exclusion constraints CodoMetis.ValueRanges#540 can offer the chained and the startingOverlapstogether - Tagged on 2026-11-29:
v11.0.0-preview.3at 8347dc2, by the maintainer's word. Before it, the pages were brought topreview.3(docs: the README, the guide and CONTRIBUTING.md still speak of preview.2 #280, merged with docs: the pages speak of preview.3 #281), the changelog section dated (Date the changelog section of 11.0.0-preview.3 #282, merged with chore: date the changelog section of 11.0.0-preview.3 #283), and a dry run ofrelease.ymlpassed with the smoke-test step release.yml: smoke-test the packages that are published #230 added toverify. The reviews before the tag, a sweep and an outside review by two models, found nothing that goes wrong with the two contributors as shipped; their findings are A collation named default is written without delimiters, and PostgreSQL refuses the statement #284, A stated collation that is the column's own, and hand-written SQL that is the column in parentheses, are rebuilt although the catalog holds one index #285, An order comparison through a value object with a generated converter: each refusal names a form the other refuses #286 and the epic Epic: what the reviews before preview.3 found #296, which holds the rest since this epic has GitHub's 100 sub-issues - Published on 2026-11-29: the release run for the tag passed every lane of CI, the pack checks and the smoke test of the packed folder, and after the
nugetenvironment's approval pushedCodoMetis.EFCore.SchemaKitandCodoMetis.EFCore.SchemaKit.PostgreSQL11.0.0-preview.3to nuget.org. Read back from nuget.org: both versions are listed, the PostgreSQL package depends on the kernel at[11.0.0-preview.3], and its nuspec names commit 8347dc2. The GitHub release v11.0.0-preview.3 is a prerelease with the changelog section as its notes and the two SBOMs attached. - Where they fit: Analyzer: the translator's refusals as build errors, in 11.0.0 #31, Golden corpus per renderer epoch, with snapshot fixtures #33, the translator's A widening the translator leaves out is a cast in EF Core's query: x.Int == 5L is stored as {Int} = 5, and the index does not serve "Int"::bigint = 5 #125, A float literal is written with its shortest digits, and PostgreSQL compares it as double precision: x.Ratio == 0.1f matches no row that holds 0.1f #127, A null argument to a method the spelling writes: refuse it where the lambda is written #228 and A captured object that is changed in place before the model is finalized is written as it is then #231, the tests of The planner's Lost/RebuildAround precedence and two KeepInPlace rules are held by no test #169, No offline test holds RequireKernel as the first call of each registration #170 and The test of the casts PostgreSQL refuses takes its list from the code it tests #229, and docs: the README and the 5.x guide predate the plain-docs voice #153
preview.4: #29 with #200, #156, the rest of #116 and SQL Server's scopes of #44. The gate of rc.1 is unchanged: the contract freezes after the SQL Server package has been written against it. Decided 2026-11-29 with the tag of preview.3: the findings of its reviews are preview.4's too, which are #272 and the nine sub-issues of #296 (#287 to #295). Merged on 2026-11-29: #287, #291, #284 and #272, the last decided as the refusal with #302; #299 and #304 were found beside them and hang under #296. Merged on 2026-11-30: #299, #286, #295, #292 and #304. Of the findings, #288, #289, #290, #293 and #294 are open. main is at the version since 2026-11-29 (#297, merged with #298; its changelog section has one placeholder line the first change replaces), which is no sub-issue here since this epic has GitHub's 100.
Decided 2026-11-11. SchemaKit lives in this repository, its own; EFCore.ComplexIndexes is not renamed, so the rename bullet below is void, and "from main" means this repository's main. The 5.x line continues in CaffeinatedCoder/EFCore.ComplexIndexes (CaffeinatedCoder/EFCore.ComplexIndexes#211). The core is planned in design/schemakit-core-plan.md, whose section 7 holds the decisions and section 6 the spikes and slices: preview.1 kernel host and exclusion constraints, preview.2 typed indexes and 5.x replay, preview.3 SQL Server, verifier, analyzer and the first outside contributor, rc.1 when Npgsql ships 11.0.0. Issue numbers below are this repository's since the transfer; a reference that names CaffeinatedCoder/EFCore.ComplexIndexes is an issue that stayed there.
Goal
The EF Core 11 / .NET 11 successor to EFCore.ComplexIndexes, under new ids: CodoMetis.EFCore.SchemaKit (kernel), CodoMetis.EFCore.SchemaKit.PostgreSQL and CodoMetis.EFCore.SchemaKit.SqlServer. Decided 2026-10-19; this replaces the 2026-10-18 plan for an 11.x line of the same package.
- It ships as
11.0.0-preview.Nfrommain, and as11.0.0when it's ready. That doesn't have to be EF Core 11's GA day: nobody is stranded, because 5.x keeps serving EF Core 10 (Epic: 5.5.0 — EFCore.ComplexIndexes stays the EF Core 10 package EFCore.ComplexIndexes#36). - Version numbers track the EF Core major, as Npgsql and CodoMetis.ValueRanges do.
- The repository is renamed to
CaffeinatedCoder/CodoMetis.EFCore.SchemaKitwith the first preview. GitHub redirects the old URL.
This keeps issue CaffeinatedCoder/EFCore.ComplexIndexes#3's promise: two parallel packages from November 2026 until EF Core 10 leaves support.
A new API, not the old one renamed
Decided 2026-10-19 by the maintainer: SchemaKit gets an entirely new public API, designed in #11. The rule is the one the CodoMetis.ValueRanges range types follow: a declaration the database would reject does not compile. The design uses .NET 11 and C# 15 for that, closed hierarchies first of all. No preview ships the 5.x API under the new ids. What stays compatible is the DDL and the snapshot annotations (#9, #10), not the API.
Why a new package
EF Core 11 ships native HasIndex/HasKey/HasAlternateKey over complex-type properties, JSON-mapped paths and complex-collection paths (dotnet/efcore#31246). Npgsql 11 ships native WITHOUT OVERLAPS and PERIOD (efcore.pg#3708, #3710). The old name now describes what the platform does.
Because SchemaKit is a new package, it leaves those features out, with no [Obsolete] shims. It keeps what stays unique: expression and JSON-member indexes, typed filter predicates, exclusion constraints, NULLS FIRST/LAST, and the SQL Server options.
Why this name
EF Core resolves the model differ and the migrations SQL generator as single services. When two packages replace one, one of them silently loses. SchemaKit is the one owner of both in the CodoMetis family, and it offers a public contract that other packages plug into (#7, #8).
"Schema" is that boundary. Whatever needs the differ or the generator belongs here or plugs in, such as the migration-aware parts of ltree in the planned CodoMetis.Hierarchies. Types, operators and query translation stay out: ltree's in CodoMetis.Hierarchies, ranges in CodoMetis.ValueRanges.
DataKit was rejected: it's unspecific, and nuget.org already has a DataKit.* family of 17 packages, including DataKit.SQL.Postgresql and DataKit.ORM.
Sequence
- SchemaKit API design: a declaration the database would reject does not compile #11: the API design, reviewed and merged as
design/schemakit-api.md, with compile probes for every "does not compile" claim. - SchemaKit 11.0.0-preview.1: the first slice of the new API, on EF Core 11 / Npgsql 11 under the new ids #2: after
v5.5.0, therelease/5.xcut and SchemaKit API design: a declaration the database would reject does not compile #11,mainis retargeted to EF Core 11 and renamed to the new ids.11.0.0-preview.1ships the first slice of the new API: the kernel plus at least one feature end to end. - SchemaKit: the contributor contract, so packages add schema objects instead of replacing EF services #7, SchemaKit: the wiring guards, so a missing or displaced UseSchemaKit() fails loudly #8, SchemaKit: snapshot format v3 and CodoMetis: annotation keys ship in 11.0.0; the 5.x format is read forever (D11) #9: the plugin contract, the ownership check and snapshot format v2, built to SchemaKit API design: a declaration the database would reject does not compile #11. They are public and permanent, so they land before 11.0.0.
- SchemaKit: leave out what EF Core 11 and Npgsql 11 do natively; keep what stays unique #3: leave out what the platform does. Temporal keys are decided: left out, since Npgsql 11's native ones accept every ValueRanges column (feat: Npgsql 11's native temporal keys accept every range and multirange column CodoMetis.ValueRanges#335). The
HasComplexIndexhalf is open. - SchemaKit: moving from EFCore.ComplexIndexes 5.x adds no migration, or exactly the one the guide documents #10: the package swap adds no migration.
- Cross-tests with CodoMetis.ValueRanges: range and multirange columns as exclusion-constraint operands #4, CI lanes: PostgreSQL 16 and 18, SQL Server 2022, and a prerelease path in the release workflow #5, Package validation on the SchemaKit line: no baseline until 11.0.0 #6: cross-tests, CI matrix, package validation.
Done when
- Every sub-issue is closed.
- Previews are published while EF Core 11 is in RC.
- The changelog opens 11.0.0 with the platform floor and what is left out, and the migration doc has the "EFCore.ComplexIndexes 5.x → SchemaKit" section.
v11.0.0is tagged and the three packages are on NuGet.- CONTRIBUTING and SECURITY.md name both lines: SchemaKit 11.x on
main, EFCore.ComplexIndexes 5.x onrelease/5.x.
Activity
[-]Epic: 11.0.0[/-][+]Epic: CodoMetis.EFCore.SchemaKit 11.0.0 — the EF Core 11 successor[/+]CaffeinatedCoder commentedon Nov 11, 2026
State on 2026-11-11, the day after .NET 11 GA.
Npgsql.EntityFrameworkCore.PostgreSQLis still11.0.0-rc.3and pins EF Core to exactly rc.3, so no stable SchemaKit can exist before Npgsql's 11.0.0. Its 10.0.0 came eleven days after .NET 10.11.0.0-preview.1is planned on the GA SDK and rc.3 (Publish 11.0.0-preview.1 on the .NET 11 GA SDK and Npgsql's provider 11.0.0 CodoMetis.ValueRanges#332), after its move to the GA SDK (main: move to the .NET 11 GA SDK and the 11.0.0 test packages, and repeat the retarget measurements CodoMetis.ValueRanges#532). SchemaKit 11.0.0-preview.1: the first slice of the new API, on EF Core 11 / Npgsql 11 under the new ids #2's "restores beside ValueRanges 11.0.0-preview.1" check waits for that.v11.0.0does not wait for SchemaKit. Its cross-tests against SchemaKit (main: re-enable the cross-tests and the joint smoke consumer against CodoMetis.EFCore.SchemaKit.PostgreSQL CodoMetis.ValueRanges#333) left the 11.0.0 milestone and ship in its first 11.x minor.What that means here: an application that uses ValueRanges together with EFCore.ComplexIndexes can't move to EF Core 11 until SchemaKit ships, whatever the other packages do. So the API design (#61, draft PR CaffeinatedCoder/EFCore.ComplexIndexes#63) is the critical path, and step 1 of the sequence above is the next piece of work. Nothing else in this epic is blocked by anything but it and Npgsql.
87 remaining items