Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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<Item>().Property(i => i.Embedding).Metadata.IsAutoLoaded = true;
```

Insert a vector

```csharp
Expand Down
2 changes: 1 addition & 1 deletion src/Pgvector.EntityFrameworkCore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>Pgvector.EntityFrameworkCore</PackageId>
<Version>0.3.0</Version>
<Version>0.4.0</Version>
<Authors>ankane</Authors>
<Description>pgvector support for Entity Framework Core</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
Expand All @@ -22,7 +22,7 @@
<None Include="..\..\icon.png" Pack="true" PackagePath="\" />
<None Include="build\**\*" Pack="true" PackagePath="build" />
<ProjectReference Include="..\Pgvector\Pgvector.csproj" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="11.0.0-rc.3" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="11.0.0" />
</ItemGroup>

</Project>