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 @@ - +