Document: vector properties not loaded by default in EF Core 11#5286
Document: vector properties not loaded by default in EF Core 11#5286
Conversation
Document dotnet/efcore#37279 Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
roji
left a comment
There was a problem hiding this comment.
Add a low-impact breaking change note. For now, leave the "mitigation" section as TODO - we'll be introducing a mechanism to opt into loading vector properties later in the release.
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Done in dc55ed9 — added a low-impact breaking change entry in |
There was a problem hiding this comment.
Pull request overview
Documents an EF Core 11 behavior change for SQL Server vector columns (SqlVector<T>): vector properties are excluded from entity materialization by default to avoid transferring large payloads unnecessarily.
Changes:
- Added a “Vector properties not loaded by default” note/section in EF Core 11 “What’s New”.
- Added a low-impact breaking change entry describing the new default behavior and mitigations.
- Updated SQL examples in the SQL Server vector search docs to reflect the new default projection.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md | Adds a SQL Server “What’s New” entry explaining default non-loading of vector properties with a short example. |
| entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md | Adds a low-impact breaking change entry for SqlVector<T> not being loaded by default and a projection-based mitigation. |
| entity-framework/core/providers/sql-server/vector-search.md | Adds a note about the new default behavior and updates SQL snippets to omit vector columns from entity projections. |
You can also share your feedback on Copilot code review. Take the survey.
entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md
Outdated
Show resolved
Hide resolved
Document dotnet/efcore#37279 Co-authored-by: Shay Rojansky <roji@roji.org>
Document dotnet/efcore#37279 Co-authored-by: Shay Rojansky <roji@roji.org>
EF Core 11 introduces partial property loading:
SqlVector<T>properties are excluded fromSELECTby default, since vectors are large and rarely need to be read back after ingestion.vector-search.md[!NOTE]noting that prior to EF Core 11, vector properties were always loaded like any other propertyVECTOR_SEARCH()and hybrid search examples to reflect vector column no longer appearing inSELECTwhatsnew.mdbreaking-changes.mdSqlVector<T>properties no longer being loaded by default (tracking issue #37279)✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.