Skip to content

Support compiled models generated with --nativeaot #42

Closed as not planned

Description

@CaffeinatedCoder

dotnet ef dbcontext optimize --nativeaot fails at design time on a model that uses ValueRanges mapping types. It needs a static Default on each mapping type.

The standard dotnet ef dbcontext optimize was measured to work during the 9.0.0 review, JSON columns included.

Done when a compiled model generated with --nativeaot builds and runs a query over every range and set family.

Activity

  1. added this to the 9.1.0 milestone on Oct 17, 2026
  2. removed this from the 9.1.0 milestone on Oct 17, 2026
  3. CaffeinatedCoder commented on Oct 17, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Moved off 9.1.0 into the backlog (#83), with no milestone.

    release/9.x has been cut, and 9.1.0 ships with the work that's already finished. Nothing has started on this issue, and it shouldn't hold up the tag. This is an addition, so the 10.0.0 epic (#58) doesn't take it either: that epic is kept to the silent and breaking fixes so they aren't held up behind new features.

    When someone picks it up, it goes under the epic of the release it will ship in and takes that milestone. A 9.x minor would need the change cherry-picked onto release/9.x.

  4. CaffeinatedCoder commented on Oct 18, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Duplicate of #209, which measures the failure (CompiledModelCodeGenerationOptions.ForNativeAot = true in CompiledModelJsonTests, #43) and names the missing member.

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/aotNative AOT and trimmingduplicateThis issue or pull request already existsenhancementNew feature or requestpackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQL

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions