Skip to content

Prepare Pgvector.EntityFrameworkCore 0.4.0 for EF Core 11 - #66

Closed
roji wants to merge 1 commit into
pgvector:masterfrom
roji:roji-pgvector-ef-11-support
Closed

roji wants to merge 1 commit into
pgvector:masterfrom
roji:roji-pgvector-ef-11-support

Conversation

@roji

@roji roji commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Prepare the EF integration for a stable 0.4.0 release now that EFCore.PG 11.0.0 is available:

  • Update Npgsql.EntityFrameworkCore.PostgreSQL from 11.0.0-rc.3 to 11.0.0 and set the package version to 0.4.0.
  • Date the existing 0.4.0 changelog entry.
  • Update the README compatibility guidance (0.4.0 for EF 11; 0.3.0 for EF 9/10), and document the new default vector-loading behavior and the model-level opt-in.

The convention and net11.0 targets are already on master from #64; no implementation changes are needed here. Lower-level Pgvector and Pgvector.Dapper packages are unchanged. Nothing has been published.

Validation

  • All 18 focused EF integration tests and all 30 C# tests passed against PostgreSQL 18.4.
  • Release packing succeeded; verified package version 0.4.0, stable EFCore.PG dependency 11.0.0, and lib/net11.0 plus build/net11.0 assets.
  • Confirmed tests resolved EF Core, EFCore.PG, and Npgsql 11.0.0. Local validation used the installed .NET SDK 11.0.100-rc.2.26504.105.

Related to #59 and #64.

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

roji commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Hey @ankane, I just published Microsoft.EntityFrameworkCore.PostgreSQL 11.0.0... Following discussion on #64, here's a PR bumping the version to 0.4.0 and using that new 11.0.0. I think after this you only need to publish.

@ankane

ankane commented Nov 21, 2026

Copy link
Copy Markdown
Member

Hi @roji, thanks for the PR, and congrats on the release.

I've been thinking about this more and think the autoloading change may be confusing since it's different from other fields. I'd rather keep it opt-in for now, which shouldn't require a new release.

Sorry for the change on this.

@ankane ankane closed this Nov 21, 2026
@roji

roji commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

@ankane you mean you prefer vector properties to be loaded by default? These are large blobs that are almost never needed client-side (they're only for database-side search), and we received specific user complaints about it. This also aligns with (AFAIK) most dedicated vector database APIs, where fetching vector properties is a special opt-in. Finally, doing things differently for pgvector makes it inconsistent with the general EF policy - see https://learn.microsoft.com/en-us/ef/core/what-is-new/ef-core-11.0/whatsnew?tabs=fluent-api#vector-properties-not-loaded-by-default (e.g. SQL Server no longer loads vector properties by default in EF 11).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants