From be3e2766f453a3e5d19973e67222c7881fe10861 Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 20 Nov 2026 17:19:01 +0100 Subject: [PATCH] Prepare Pgvector.EntityFrameworkCore 0.4.0 release Use stable EFCore.PG 11.0.0, finalize the release notes, and document EF version compatibility and vector auto-loading. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4ee736d1-4bad-4472-aab8-8111aa20c4d9 --- README.md | 8 +++++++- src/Pgvector.EntityFrameworkCore/CHANGELOG.md | 2 +- .../Pgvector.EntityFrameworkCore.csproj | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e25879a..1affea8 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ Run dotnet add package Pgvector.EntityFrameworkCore ``` -The latest version works with Entity Framework Core 9 and 10. For Entity Framework Core 8, use version 0.2.2 and [this readme](https://github.com/pgvector/pgvector-dotnet/blob/efcore-v0.2.2/README.md#entity-framework-core). +The latest version works with Entity Framework Core 11. For Entity Framework Core 9 and 10, use version 0.3.0. For Entity Framework Core 8, use version 0.2.2 and [this readme](https://github.com/pgvector/pgvector-dotnet/blob/efcore-v0.2.2/README.md#entity-framework-core). Import the library @@ -247,6 +247,12 @@ public class Item Also supports `HalfVector` and `SparseVector` +Vector properties are not loaded by default. To load a property automatically, configure it in `OnModelCreating`: + +```csharp +modelBuilder.Entity().Property(i => i.Embedding).Metadata.IsAutoLoaded = true; +``` + Insert a vector ```csharp diff --git a/src/Pgvector.EntityFrameworkCore/CHANGELOG.md b/src/Pgvector.EntityFrameworkCore/CHANGELOG.md index 9c7303e..6c1d034 100644 --- a/src/Pgvector.EntityFrameworkCore/CHANGELOG.md +++ b/src/Pgvector.EntityFrameworkCore/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.4.0 (unreleased) +## 0.4.0 (2026-11-20) - Changed `Vector`, `HalfVector`, and `SparseVector` properties to no longer load by default (matching EF Core) - Dropped support for Npgsql.EntityFrameworkCore.PostgreSQL < 11 diff --git a/src/Pgvector.EntityFrameworkCore/Pgvector.EntityFrameworkCore.csproj b/src/Pgvector.EntityFrameworkCore/Pgvector.EntityFrameworkCore.csproj index 848c314..43649e4 100644 --- a/src/Pgvector.EntityFrameworkCore/Pgvector.EntityFrameworkCore.csproj +++ b/src/Pgvector.EntityFrameworkCore/Pgvector.EntityFrameworkCore.csproj @@ -2,7 +2,7 @@ Pgvector.EntityFrameworkCore - 0.3.0 + 0.4.0 ankane pgvector support for Entity Framework Core MIT @@ -22,7 +22,7 @@ - +