Skip to content

net11.0: the EF Core satellite on EF Core 11 (nested complex keys, CAST stripping, primitive collections) #215

Open

Description

@CaffeinatedCoder

Goal

Show that the EF Core satellite stays correct on EF Core 11. These checks are owed by the net11.0 target (#208). Sources: What's new in EF Core 11 and its breaking changes, still prerelease.

Checks

  1. Keys and indexes in nested complex types. EF 11 allows HasKey(c => c.CustomerId.Value) and HasIndex(c => c.Address.PostalCode) on scalar properties of nested complex types. That is TypeKit's own .Value shape. Add the shapes to KeyShapes/QueryShapes (test/CodoMetis.TypeKit.EntityFrameworkCore.Tests/Variants/) and run them on SQLite and SQL Server.
  2. No-op CAST stripping. EF 11 removes redundant casts on value-converted properties, so the SQL a README or docs block states in a comment may differ between targets. Decide how the Samples tests hold a per-target SQL comment: keep the docs to one form, or state both forms.
  3. Property no longer configures a primitive collection. Check that the convention configures a collection of value objects, or of their wrapped type, through PrimitiveCollection(...) on EF 11, and that a column isn't silently dropped or mapped as JSON with no converter.
  4. Owned JSON collections without a key are obsolete in favour of ComplexCollection(..., ToJson). A value object inside a complex JSON collection writes and reads as its wrapped type.
  5. UseSqlServer defaults to compatibility level 160. Check the SQL Server oracles under it.

Done when

The checks run in the net11.0 test run against EF Core 11. The floor raise is named in the changelog (decision 120, rule 1). Each disagreement is an issue of its own; a silent one is labelled silent.

Activity

  1. added this to the 2.4.0 milestone on Oct 30, 2026
  2. added
    tests
    package/efcore
    on Oct 30, 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

    package/efcoretests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions