Skip to content

main: move the EF Core and Npgsql floors to 11.0.0 #533

Done

Description

@CaffeinatedCoder

Unblocked 2026-11-20. Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 and Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0 have been on nuget.org since 2026-11-20. Since 2026-11-28 this comes before the first preview (#332), so preview.1 ships on the provider's 11.0.0 and not on rc.3. CodoMetis.EFCore.SchemaKit.PostgreSQL 11.0.0-preview.2 already depends on [11.0.0, 12.0.0) of the provider.

Problem

v11.0.0 can't be tagged while the EF packages depend on a prerelease: a stable package with a prerelease dependency fails the pack with NU5104. main references Npgsql.EntityFrameworkCore.PostgreSQL and its NodaTime plugin at 11.0.0-rc.3, and rc.3 pins EF Core to exactly 11.0.0-rc.3.26522.148.

Change

  • Npgsql's provider and its NodaTime plugin to 11.0.0 in the two EF packages, and Microsoft.EntityFrameworkCore.Design to 11.0.0 in the test projects, in one change. Never floor EF Core above the version the floored Npgsql pins. The provider's 11.0.0 takes EF Core [11.0.0, 12.0.0).
  • This is the first run on the Npgsql 11 driver. The provider's 11.0.0 depends on Npgsql 11.0.0 and its NodaTime plugin on Npgsql.NodaTime 11.0.0, where rc.3 resolved Npgsql 10.0.3. Run the temporal store rule (TemporalStoreParityTests) and the infinity-disabled project before anything else.
  • Run every suite on PostgreSQL 16 and 18, both smoke modes, and the four behaviour changes of build: retarget main to .NET 11 for 11.0.0-preview.1 #292 once more.
  • Read the provider's 11.0.0 release notes for changes after rc.3. Fix NodaTime LocalDate subtraction and BCE year extraction npgsql/efcore.pg#4109 changed NodaTime LocalDate subtraction for 11.0 only.

Done when

main restores with no prerelease package in the shipping projects, and the full run is green.

Activity

  1. added this to the 11.0.0 milestone on Nov 11, 2026
  2. added
    chore
    package/efcore
    area/release
    on Nov 11, 2026
  3. added
    package/efcore-nodatime
    on Nov 11, 2026
  4. changed the title [-]main: move the EF Core and Npgsql floors to 11.0.0 when Npgsql's provider ships it[/-] [+]main: move the EF Core and Npgsql floors to 11.0.0[/+] on Nov 28, 2026
  5. CaffeinatedCoder commented on Nov 28, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Measured 2026-11-28 on build/533-npgsql-11-floors (commit 1f84c7e on d441c79, PR #542), run locally, osx-arm64, SDK 11.0.100, CI=true so a missing database fails.

    What resolves

    Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0, Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime 11.0.0, EF Core 11.0.0, Npgsql 11.0.0 and Npgsql.NodaTime 11.0.0. The four shipping projects have no prerelease package among their dependencies, direct or transitive. The packed nuspecs name Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 and its NodaTime plugin 11.0.0.

    The build needed no source change, with warnings as errors.

    The Npgsql 11 driver first

    TemporalStoreParityTests and the infinity-disabled project (7 tests) pass on PostgreSQL 16 and 18.

    Every suite

    CodoMetis.ValueRanges.Tests                     Passed: 1399
    CodoMetis.ValueRanges.NodaTime.Tests            Passed:  239
    EFCore.PostgreSQL.Tests (translation)           Passed:  403
    EFCore.PostgreSQL.NodaTime.Tests                Passed:  107
    AspNetCore.Tests                                Passed:   92
    Conventions.Tests                               Passed:  417
    EFCore.PostgreSQL.IntegrationTests  on 16       Passed:  368
    InfinityDisabled.IntegrationTests   on 16       Passed:    7
    EFCore.PostgreSQL.IntegrationTests  on 18       Passed:  368
    InfinityDisabled.IntegrationTests   on 18       Passed:    7
    

    No test was skipped or inconclusive.

    The four fixes of #292 are still needed

    Each was stripped alone in a scratch copy, its tests run, and the file restored.

    Fix Stripped Result
    #286, hour 24 StartsWithHour24 never matches TemporalLiteralGrammarTests: 7 of 115 fail, "Expected exception of exact type FormatException"
    #287, RangeSet.Contains RangeSetContainsRewriter out of the interceptor RangeSet_Contains_Set, _Value, _RangeColumn: 3 of 3 fail, ArgumentException inside EF Core
    #289, jsonb_set_lax the name out of ValueSetSqlGuard's match ExecuteUpdateGuardTests: 6 of 7 fail, the message names the column and not the path
    #290, empty captured list EmptyCollectionRewriter leaves the constant uncast AnEmptyCollection* on PostgreSQL 16: 3 of 5 fail, 42883: operator does not exist: text && int4range

    Smoke test, both modes

    Own feed and a pre-built dist: 99 ok lines each, no assertion failure, "consumer smoke test passed (11.0.0-preview.1)". The Native AOT consumer and the walkthrough consumer (PostgreSQL 16) ran. The ComplexIndexes consumer is skipped on net11.0, as before (#333).

    The provider after rc.3

    v11.0.0-rc.3...v11.0.0 is eight commits. Besides the sync to EF Core 11.0.0 and Npgsql 11.0.0 they fix translations of the provider's own types: lower/upper of an NpgsqlRange<T> and of a NodaTime DateInterval declared as not propagating NULL (npgsql/efcore.pg#4134), array_remove likewise, a new PgExpressionType.ArrayConcat for Concat over arrays, parentheses around the item of ANY/ALL (npgsql/efcore.pg#4130), TimeOnly.IsBetween (npgsql/efcore.pg#4127), chained array subscripts (npgsql/efcore.pg#4135) and storage parameters under a culture (npgsql/efcore.pg#4115). None changes an expression this package builds, and the suites above agree. npgsql/efcore.pg#4109 (LocalDate subtraction) was merged on 2026-10-25, before rc.3, so main has had it since #532.

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/releasechorepackage/efcorepackage/efcore-nodatime

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions