From d0b9e913eb11b31084a9e165a2d20bf85bddd44a Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 20 Nov 2026 15:45:18 +0100 Subject: [PATCH 1/3] Update documentation for the 11.0 release Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build-documentation.yml | 6 +++-- Npgsql | 2 +- conceptual/EFCore.PG/release-notes/11.0.md | 11 ++++++--- conceptual/Npgsql/dev/release-checklist.md | 2 +- conceptual/Npgsql/diagnostics/logging.md | 2 +- conceptual/Npgsql/diagnostics/metrics.md | 2 +- conceptual/Npgsql/release-notes/10.0.md | 2 +- conceptual/Npgsql/release-notes/11.0.md | 28 ++++++++++++++++++---- conceptual/Npgsql/release-notes/9.0.md | 2 +- conceptual/Npgsql/toc.yml | 2 ++ docfx.json | 1 + npgsql-api-filter.yml | 5 ++++ 12 files changed, 49 insertions(+), 16 deletions(-) create mode 100644 npgsql-api-filter.yml diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index ef885000..b2316e12 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -41,7 +41,9 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v6.0.0 with: - dotnet-version: 10.0.x + dotnet-version: | + 10.0.x + 11.0.x # docfx has issues specifically with analyzer/sourcegen projects; build manually before. - name: Build Npgsql @@ -55,7 +57,7 @@ jobs: working-directory: EFCore.PG - name: Get docfx - run: dotnet tool install --version 2.78.5 -g docfx + run: dotnet tool install --version 2.81.0 -g docfx - name: Build docs run: docfx --warningsAsErrors diff --git a/Npgsql b/Npgsql index 562845f6..4d174200 160000 --- a/Npgsql +++ b/Npgsql @@ -1 +1 @@ -Subproject commit 562845f6ca54effeb1bd2ca10b6a5c128cc35beb +Subproject commit 4d174200ed48e3e3ab16419dbf84dd655da59de6 diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index 60f97b39..3c721f11 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -6,9 +6,6 @@ Npgsql.EntityFrameworkCore.PostgreSQL version 11.0 is currently in development. EF 11 complex types mapped with `ToJson()` now support indexing JSON members through the existing `HasIndex` APIs, including unique and composite indexes. By default, these create B-tree expression indexes over the selected values; explicit GIN indexes can target `jsonb` arrays and subdocuments. See [Indexing JSON columns](../mapping/json.md#indexing-json-columns) for examples and limitations. -> [!NOTE] -> The provider currently references EF `11.0.0-rc.2.26504.105`, which has two temporary limitations: C# migration scaffolding for JSON member indexes fails because it cannot scaffold a `RelationalJsonIndex` literal, and composite member indexes with mixed ascending/descending directions fail before SQL generation. Uniform ascending or descending composites can generate SQL, but remain affected by the scaffolding limitation. Both issues are fixed in [dotnet/efcore#39089](https://github.com/dotnet/efcore/pull/39089); the provider has not yet consumed those fixes. - ## PostgreSQL JSON functions with ToJson The existing PostgreSQL JSON functions, such as `EF.Functions.JsonContains()` and `EF.Functions.JsonExists()`, can now be used with complex types and owned entities mapped with `ToJson()`, including nested objects and collections: @@ -168,6 +165,10 @@ See the [11.0.0 milestone](https://github.com/npgsql/efcore.pg/milestone/75?clos ## Breaking changes +### .NET 11 and EF Core 11 are required + +The 11.0 provider targets .NET 11 and requires EF Core 11. To upgrade from version 10, retarget your application to `net11.0` and update your EF Core packages to 11.0. + ### PostgreSQL 16 is targeted by default The provider now assumes at least PostgreSQL 16 by default, taking advantage of newer features (previously, PostgreSQL 14 was targeted). You can configure the targeted PostgreSQL version when configuring your context: @@ -185,6 +186,10 @@ In addition, PostgreSQL serialization failures (`40001`) and deadlocks (`40P01`) These changes do not enable automatic retries. See [execution strategies](../misc/other.md#execution-strategy) and [database concurrency failures](../modeling/concurrency.md#database-concurrency-failures) for details ([#3098](https://github.com/npgsql/efcore.pg/issues/3098)). +### NodaTime `LocalDate` subtraction returns calendar periods + +In queries, subtracting two `LocalDate` values now uses PostgreSQL's `age()` function. The result can include years and months instead of just elapsed days: January 31 minus December 31 now returns `P1M`, not `P31D`. PostgreSQL's month-end rules still differ from NodaTime's; for example, February 28 minus January 31 in a non-leap year returns `P28D` ([#4109](https://github.com/npgsql/efcore.pg/pull/4109)). + ### Initial migration rollback removes model-level objects Rolling back a newly scaffolded initial migration now drops enum, range and collation definitions that were previously left behind. If other applications use these objects, the rollback can fail due to their dependencies; remove the corresponding drop operations from `Down()` if the objects must be preserved ([#3604](https://github.com/npgsql/efcore.pg/issues/3604)). diff --git a/conceptual/Npgsql/dev/release-checklist.md b/conceptual/Npgsql/dev/release-checklist.md index 3b06f880..c81fb9e6 100644 --- a/conceptual/Npgsql/dev/release-checklist.md +++ b/conceptual/Npgsql/dev/release-checklist.md @@ -38,4 +38,4 @@ git push upstream :hotfix/9.0.2 ## Update API documentation -[Our documentation site](https://www.npgsql.org) automatically publishes API docs for Npgsql and EFCore.PG from the `docs` branches in each of those two repos. After publishing a major version, you'll need to re-point that branch to the new version, so that API docs for that version are generated (`git reset --hard v9.0.0`). You'll then need to trigger a docs rebuild (you can just wait for the next time some small note needs to be updated etc.). +[Our documentation site](https://www.npgsql.org) generates API docs from the `Npgsql` and `EFCore.PG` submodules in the [documentation repository](https://github.com/npgsql/doc). After publishing a major version, check out the release tag in the corresponding submodule and commit the updated submodule pointer in the documentation repository. Update the SDK in the documentation build workflow or the target framework in `docfx.json` if the new version requires it. Merging the documentation changes to `main` triggers a rebuild and publishes the updated site. diff --git a/conceptual/Npgsql/diagnostics/logging.md b/conceptual/Npgsql/diagnostics/logging.md index cafe0307..7e194b75 100644 --- a/conceptual/Npgsql/diagnostics/logging.md +++ b/conceptual/Npgsql/diagnostics/logging.md @@ -38,7 +38,7 @@ By default, Npgsql logs command executions at the `Information` log level, as we ## ASP.NET and dependency injection -If you're using ASP.NET, you can use the additional [Npgsql.DependencyInjection](https://www.nuget.org/packages/Npgsql.DependencyInjection) package, which provides seamless integration with dependency injection and logging: +If you're using ASP.NET, use `AddNpgsqlDataSource()` to integrate with dependency injection and logging. This method is included in Npgsql starting with version 11. For earlier versions, add a reference to [Npgsql.DependencyInjection](https://www.nuget.org/packages/Npgsql.DependencyInjection). ```csharp var builder = WebApplication.CreateBuilder(args); diff --git a/conceptual/Npgsql/diagnostics/metrics.md b/conceptual/Npgsql/diagnostics/metrics.md index 6823d635..201be1e7 100644 --- a/conceptual/Npgsql/diagnostics/metrics.md +++ b/conceptual/Npgsql/diagnostics/metrics.md @@ -36,7 +36,7 @@ dotnet counters monitor --counters Npgsql -p db.client.connection.pool.name=CustomersDB,state=used 2 ``` -Note that Npgsql emits multiple *dimensions* with the metrics, e.g. the connection states (idle or used). In addition, an identifier for the connection pool - or data source - is emitted with every metric, allowing you to separately track e.g. multiple databases accessed in the same applications. By default, the `pool.name` will be the connection string, but it can be useful to give your data sources a name for easier and more consistent tracking: +Npgsql emits multiple *dimensions* with its metrics, such as the connection state (idle or used). The `db.client.connection.pool.name` tag identifies the data source so you can track multiple pools separately. Starting with Npgsql 11, this tag defaults to the connection string's `Application Name` if set; otherwise, it uses the connection string with the password removed. You can set an explicit name for consistent tracking: ```csharp var builder = new NpgsqlDataSourceBuilder("Host=localhost;Username=test;Password=test") diff --git a/conceptual/Npgsql/release-notes/10.0.md b/conceptual/Npgsql/release-notes/10.0.md index f9891b6b..be6e2a2d 100644 --- a/conceptual/Npgsql/release-notes/10.0.md +++ b/conceptual/Npgsql/release-notes/10.0.md @@ -3,7 +3,7 @@ Npgsql version 10.0 is out and available on [nuget.org](https://www.nuget.org/packages/Npgsql). > [!NOTE] -> We're considering to start dropping support for synchronous APIs (`NpgsqlConnection.Open`, `NpgsqlCommand.ExecuteNonQuery`, etc.) starting with Npgsql 11.0. The current plan is to deprecate the API by throwing a runtime exception by default (with a switch to re-enable synchronous I/O) for Npgsql 11.0, while possibly completely removing it for Npgsql 12.0. This is in line with ASP.NET Core and .NET APIs in general, which are moving in the direction of async I/O only (for example, `System.IO.Pipelines` doesn't have synchronous I/O). If you have any questions or want to share you experience/issues with async I/O, please feel free to post in the [issue](https://github.com/npgsql/npgsql/issues/5865). +> Synchronous APIs such as `NpgsqlConnection.Open` and `NpgsqlCommand.ExecuteNonQuery` remain supported in Npgsql 11. Follow [the proposal](https://github.com/npgsql/npgsql/issues/5865) for any future changes. While this is a relatively minor release in terms of changes, it does contain new features and improvements. Notable changes: diff --git a/conceptual/Npgsql/release-notes/11.0.md b/conceptual/Npgsql/release-notes/11.0.md index 81e30782..02c92d47 100644 --- a/conceptual/Npgsql/release-notes/11.0.md +++ b/conceptual/Npgsql/release-notes/11.0.md @@ -1,16 +1,34 @@ # Npgsql 11.0 Release Notes -Npgsql version 11.0 is in development. +Npgsql 11.0.0 is available on [NuGet](https://www.nuget.org/packages/Npgsql/11.0.0). -> [!NOTE] -> We're considering to start dropping support for synchronous APIs (`NpgsqlConnection.Open`, `NpgsqlCommand.ExecuteNonQuery`, etc.) starting with Npgsql 11.0. The current plan is to deprecate the API by throwing a runtime exception by default (with a switch to re-enable synchronous I/O) for Npgsql 11.0, while possibly completely removing it for Npgsql 12.0. This is in line with ASP.NET Core and .NET APIs in general, which are moving in the direction of async I/O only (for example, `System.IO.Pipelines` doesn't have synchronous I/O). If you have any questions or want to share you experience/issues with async I/O, please feel free to post in the [issue](https://github.com/npgsql/npgsql/issues/5865). +Synchronous I/O remains supported and requires no configuration change. + +## What's new + +* `BeginTransaction()` and `BeginTransactionAsync()` accept `NpgsqlTransactionOptions.ReadOnly` and `Deferrable`, so you can set these options without a separate `SET TRANSACTION` command. `Deferrable` only takes effect for serializable, read-only transactions ([#6629](https://github.com/npgsql/npgsql/pull/6629)). +* Additional PostgreSQL OID alias types, such as `regclass` and `regtype`, can be read as `uint`, including in arrays. When writing a parameter, set `DataTypeName` to the PostgreSQL type (for example, `regclass`) instead of relying on inference ([#6503](https://github.com/npgsql/npgsql/pull/6503)). + +See the [11.0.0 milestone](https://github.com/npgsql/npgsql/milestone/132?closed=1) for the full list of issues. ## Breaking changes +### .NET 10 or later is required + +Npgsql 11 no longer targets .NET 8 or .NET 9. To upgrade to Npgsql 11, retarget your application to .NET 10 or later ([#6358](https://github.com/npgsql/npgsql/pull/6358)). + +### Dependency injection is now part of Npgsql + +The `Npgsql.DependencyInjection` package was merged into `Npgsql`. Remove the separate package reference when upgrading. Existing calls to `AddNpgsqlDataSource()` and related methods continue to work from the `Microsoft.Extensions.DependencyInjection` namespace, except for previously obsolete overloads, which have been removed. See [dependency injection setup](../diagnostics/logging.md#aspnet-and-dependency-injection) ([#6594](https://github.com/npgsql/npgsql/pull/6594)). + ### Removed multiplexing -Previous versions of Npgsql supported a high-performance mode called "multiplexing". While this mode could increase throughput in certain extremely-high-performance scenarios, it did not scale in highly-concurrent situations with many CPU cores, and added quite a bit of complexity to the codebase. We'll evaluate re-introducing a similar implementation that's more scalable and better-designed. +The experimental multiplexing mode has been removed. It could increase throughput for some workloads but did not scale well with high concurrency on machines with many CPU cores. Remove `Multiplexing` and `Write Coalescing Buffer Threshold Bytes` from your connection strings, even if multiplexing was disabled, and remove any assignments to the corresponding connection string builder properties. Regular connection pooling is unchanged ([#6457](https://github.com/npgsql/npgsql/pull/6457)). ### Removed deprecated large object APIs -Npgsql 11.0 removes some APIs to support PostgreSQL [large objects](https://www.postgresql.org/docs/current/largeobjects.html); these were obsolete since Npgsql 8.0. The APIs were old and had some design issues, and were also not necessary, as the corresponding PostgreSQL functions can simply be called directly. +`NpgsqlLargeObjectManager` and `NpgsqlLargeObjectStream`, obsolete since Npgsql 8.0, have been removed. Use PostgreSQL's [large object functions](https://www.postgresql.org/docs/current/lo-funcs.html) directly. For example, `lo_get` and `lo_put` read and write byte ranges. If you use `lo_open` to obtain a descriptor, use it on the same connection and within the same transaction. Existing large objects do not need to be migrated ([#6493](https://github.com/npgsql/npgsql/pull/6493)). + +### Application Name can change pool metric labels + +If you set `Application Name` in your connection string without explicitly naming the data source, Npgsql 11 uses that application name rather than the connection string as the `db.client.connection.pool.name` metric tag. Update dashboards that filter on the old label, or set `NpgsqlDataSourceBuilder.Name` explicitly to control the label and distinguish pools with the same application name. See [metrics](../diagnostics/metrics.md) ([#6533](https://github.com/npgsql/npgsql/pull/6533)). diff --git a/conceptual/Npgsql/release-notes/9.0.md b/conceptual/Npgsql/release-notes/9.0.md index d3c07e13..b5511d2b 100644 --- a/conceptual/Npgsql/release-notes/9.0.md +++ b/conceptual/Npgsql/release-notes/9.0.md @@ -3,7 +3,7 @@ Npgsql version 9.0 is out and available on [nuget.org](https://www.nuget.org/packages/Npgsql). > [!NOTE] -> We're considering to start dropping support for synchronous APIs (`NpgsqlConnection.Open`, `NpgsqlCommand.ExecuteNonQuery`, etc.) starting with Npgsql 10.0. The current plan is to deprecate the API by throwing a runtime exception by default (with a switch to re-enable synchronous I/O) for Npgsql 10.0, while possibly completely removing it for Npgsql 11.0. This is in line with ASP.NET Core and .NET runtime in general, which are moving in the direction of async I/O only (for example, `System.IO.Pipelines` doesn't have synchronous I/O). If you have any questions or want to share you experience/issues with async I/O, please feel free to post in the [issue](https://github.com/npgsql/npgsql/issues/5865). +> Synchronous APIs such as `NpgsqlConnection.Open` and `NpgsqlCommand.ExecuteNonQuery` remain supported in Npgsql 11. Follow [the proposal](https://github.com/npgsql/npgsql/issues/5865) for any future changes. ## Tracing improvements diff --git a/conceptual/Npgsql/toc.yml b/conceptual/Npgsql/toc.yml index befec3e3..1e524fda 100644 --- a/conceptual/Npgsql/toc.yml +++ b/conceptual/Npgsql/toc.yml @@ -2,6 +2,8 @@ href: index.md - name: Release notes items: + - name: "11.0" + href: release-notes/11.0.md - name: "10.0" href: release-notes/10.0.md - name: "9.0" diff --git a/docfx.json b/docfx.json index 1973f8d6..5363f813 100644 --- a/docfx.json +++ b/docfx.json @@ -11,6 +11,7 @@ } ], "dest": "obj/api/Npgsql", + "filter": "npgsql-api-filter.yml", "properties": { "TargetFramework": "net10.0" diff --git a/npgsql-api-filter.yml b/npgsql-api-filter.yml new file mode 100644 index 00000000..886efa07 --- /dev/null +++ b/npgsql-api-filter.yml @@ -0,0 +1,5 @@ +apiRules: +# EFCore.PG already publishes a different type with this exact UID. +- exclude: + uidRegex: ^Microsoft\.Extensions\.DependencyInjection\.NpgsqlServiceCollectionExtensions$ + type: Class From 1d9edb44b73bafeb58b26a4a51084eb2520d28ca Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 20 Nov 2026 16:00:55 +0100 Subject: [PATCH 2/3] Trim the 11.0 release notes after review Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- conceptual/EFCore.PG/release-notes/11.0.md | 8 -------- conceptual/Npgsql/release-notes/10.0.md | 3 --- conceptual/Npgsql/release-notes/11.0.md | 11 ----------- conceptual/Npgsql/release-notes/9.0.md | 3 --- 4 files changed, 25 deletions(-) diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index 3c721f11..28397b0a 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -165,10 +165,6 @@ See the [11.0.0 milestone](https://github.com/npgsql/efcore.pg/milestone/75?clos ## Breaking changes -### .NET 11 and EF Core 11 are required - -The 11.0 provider targets .NET 11 and requires EF Core 11. To upgrade from version 10, retarget your application to `net11.0` and update your EF Core packages to 11.0. - ### PostgreSQL 16 is targeted by default The provider now assumes at least PostgreSQL 16 by default, taking advantage of newer features (previously, PostgreSQL 14 was targeted). You can configure the targeted PostgreSQL version when configuring your context: @@ -186,10 +182,6 @@ In addition, PostgreSQL serialization failures (`40001`) and deadlocks (`40P01`) These changes do not enable automatic retries. See [execution strategies](../misc/other.md#execution-strategy) and [database concurrency failures](../modeling/concurrency.md#database-concurrency-failures) for details ([#3098](https://github.com/npgsql/efcore.pg/issues/3098)). -### NodaTime `LocalDate` subtraction returns calendar periods - -In queries, subtracting two `LocalDate` values now uses PostgreSQL's `age()` function. The result can include years and months instead of just elapsed days: January 31 minus December 31 now returns `P1M`, not `P31D`. PostgreSQL's month-end rules still differ from NodaTime's; for example, February 28 minus January 31 in a non-leap year returns `P28D` ([#4109](https://github.com/npgsql/efcore.pg/pull/4109)). - ### Initial migration rollback removes model-level objects Rolling back a newly scaffolded initial migration now drops enum, range and collation definitions that were previously left behind. If other applications use these objects, the rollback can fail due to their dependencies; remove the corresponding drop operations from `Down()` if the objects must be preserved ([#3604](https://github.com/npgsql/efcore.pg/issues/3604)). diff --git a/conceptual/Npgsql/release-notes/10.0.md b/conceptual/Npgsql/release-notes/10.0.md index be6e2a2d..73e346a7 100644 --- a/conceptual/Npgsql/release-notes/10.0.md +++ b/conceptual/Npgsql/release-notes/10.0.md @@ -2,9 +2,6 @@ Npgsql version 10.0 is out and available on [nuget.org](https://www.nuget.org/packages/Npgsql). -> [!NOTE] -> Synchronous APIs such as `NpgsqlConnection.Open` and `NpgsqlCommand.ExecuteNonQuery` remain supported in Npgsql 11. Follow [the proposal](https://github.com/npgsql/npgsql/issues/5865) for any future changes. - While this is a relatively minor release in terms of changes, it does contain new features and improvements. Notable changes: ## Tracing and metrics improvements diff --git a/conceptual/Npgsql/release-notes/11.0.md b/conceptual/Npgsql/release-notes/11.0.md index 02c92d47..ce0f8320 100644 --- a/conceptual/Npgsql/release-notes/11.0.md +++ b/conceptual/Npgsql/release-notes/11.0.md @@ -2,21 +2,10 @@ Npgsql 11.0.0 is available on [NuGet](https://www.nuget.org/packages/Npgsql/11.0.0). -Synchronous I/O remains supported and requires no configuration change. - -## What's new - -* `BeginTransaction()` and `BeginTransactionAsync()` accept `NpgsqlTransactionOptions.ReadOnly` and `Deferrable`, so you can set these options without a separate `SET TRANSACTION` command. `Deferrable` only takes effect for serializable, read-only transactions ([#6629](https://github.com/npgsql/npgsql/pull/6629)). -* Additional PostgreSQL OID alias types, such as `regclass` and `regtype`, can be read as `uint`, including in arrays. When writing a parameter, set `DataTypeName` to the PostgreSQL type (for example, `regclass`) instead of relying on inference ([#6503](https://github.com/npgsql/npgsql/pull/6503)). - See the [11.0.0 milestone](https://github.com/npgsql/npgsql/milestone/132?closed=1) for the full list of issues. ## Breaking changes -### .NET 10 or later is required - -Npgsql 11 no longer targets .NET 8 or .NET 9. To upgrade to Npgsql 11, retarget your application to .NET 10 or later ([#6358](https://github.com/npgsql/npgsql/pull/6358)). - ### Dependency injection is now part of Npgsql The `Npgsql.DependencyInjection` package was merged into `Npgsql`. Remove the separate package reference when upgrading. Existing calls to `AddNpgsqlDataSource()` and related methods continue to work from the `Microsoft.Extensions.DependencyInjection` namespace, except for previously obsolete overloads, which have been removed. See [dependency injection setup](../diagnostics/logging.md#aspnet-and-dependency-injection) ([#6594](https://github.com/npgsql/npgsql/pull/6594)). diff --git a/conceptual/Npgsql/release-notes/9.0.md b/conceptual/Npgsql/release-notes/9.0.md index b5511d2b..566c76ed 100644 --- a/conceptual/Npgsql/release-notes/9.0.md +++ b/conceptual/Npgsql/release-notes/9.0.md @@ -2,9 +2,6 @@ Npgsql version 9.0 is out and available on [nuget.org](https://www.nuget.org/packages/Npgsql). -> [!NOTE] -> Synchronous APIs such as `NpgsqlConnection.Open` and `NpgsqlCommand.ExecuteNonQuery` remain supported in Npgsql 11. Follow [the proposal](https://github.com/npgsql/npgsql/issues/5865) for any future changes. - ## Tracing improvements Several quality-of-life improvements have been implemented for Npgsql's OpenTelemetry tracing support. You can now do the following via the new API: From 006ecb88c9f9932b7a51603d10eeec2ac63d00ce Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 20 Nov 2026 16:17:38 +0100 Subject: [PATCH 3/3] Finalize EFCore.PG 11.0 release notes Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- conceptual/EFCore.PG/release-notes/11.0.md | 6 +++++- conceptual/EFCore.PG/toc.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index 28397b0a..9ec1c68c 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -1,6 +1,6 @@ # 11.0 Release Notes -Npgsql.EntityFrameworkCore.PostgreSQL version 11.0 is currently in development. Previews are available on [nuget.org](https://www.nuget.org/packages/Npgsql.EntityFrameworkCore.PostgreSQL). +Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0 is available on [NuGet](https://www.nuget.org/packages/Npgsql.EntityFrameworkCore.PostgreSQL/11.0.0). ## Indexes over JSON members @@ -165,6 +165,10 @@ See the [11.0.0 milestone](https://github.com/npgsql/efcore.pg/milestone/75?clos ## Breaking changes +### The dependency injection extension class was renamed + +The provider's `NpgsqlServiceCollectionExtensions` class was renamed to `NpgsqlEntityFrameworkServiceCollectionExtensions` to avoid a name collision with the Npgsql driver. Extension-method calls such as `services.AddNpgsql(...)` and `services.AddEntityFrameworkNpgsql()` don't need source changes, but assemblies compiled against the old methods must be rebuilt. If your code references the class directly, update it to use the new name ([npgsql/efcore.pg#4139](https://github.com/npgsql/efcore.pg/pull/4139)). + ### PostgreSQL 16 is targeted by default The provider now assumes at least PostgreSQL 16 by default, taking advantage of newer features (previously, PostgreSQL 14 was targeted). You can configure the targeted PostgreSQL version when configuring your context: diff --git a/conceptual/EFCore.PG/toc.yml b/conceptual/EFCore.PG/toc.yml index 1c498838..484d40cb 100644 --- a/conceptual/EFCore.PG/toc.yml +++ b/conceptual/EFCore.PG/toc.yml @@ -2,7 +2,7 @@ href: index.md - name: Release notes items: - - name: "11.0 (preview)" + - name: "11.0" href: release-notes/11.0.md - name: "10.0" href: release-notes/10.0.md