1
0
mirror of synced 2025-12-19 18:06:02 -05:00
Files
core/release-notes/10.0/preview/preview4/efcore.md
James Montemagno 780b48a043 .NET 10 Preview 4 (#9828)
* Add .NET 10 Preview 4

* adding release notes for ef core

* updated cosmos section of ef docs and added missing small improvements

* fixed headings

* fix linter error in ef docs

* Update 10.0 Preview 4 Release notes (#9867)

* Update winforms.md

First draft with copilit

* Review feedback

latest updates

* Update winforms.md

* Update release-notes/10.0/preview/preview4/winforms.md

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* Update release-notes/10.0/preview/preview4/winforms.md

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* Update release-notes/10.0/preview/preview4/winforms.md

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* Update release-notes/10.0/preview/preview4/winforms.md

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* Update release-notes/10.0/preview/preview4/winforms.md

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

---------

Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>

* cleanup

* update C# 14

* .NET 10 Preview 4 - Containers (#9879)

* add here

* udpate

* update links

* Updated [dotnet-sdk-win-x86.zip] link 10.0.0-preview.4.md

* .NET 10 Preview 4 - Libraries (#9875)

* update here

* Add Out-of-Proc Trace Support for Activity Events and Links

* Rate Limiting Trace Sampling Support

* Clean-ip

* minor touch

* zip async

* gzip perf improvement

* Update release-notes/10.0/preview/preview4/libraries.md

Co-authored-by: Martin Costello <martin@martincostello.com>

* Update release-notes/10.0/preview/preview4/libraries.md

Co-authored-by: Rich Lander <rlander@microsoft.com>

* updates

---------

Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Rich Lander <rlander@microsoft.com>
Co-authored-by: Martin Costello <martin@martincostello.com>

* .NET 10 Preview 4 - WPF (#9877)

* Add here

* Add WPF notes

* Add blurb about breaking changes

* cleanup messagebox stuff

* Update release-notes/10.0/preview/preview4/wpf.md

Co-authored-by: Harshit <62823486+harshit7962@users.noreply.github.com>

---------

Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
Co-authored-by: Harshit <62823486+harshit7962@users.noreply.github.com>

* .NET 10 Preview 4 - SDK (#9876)

* add here

* update

* .NET 10 Preview 4 - Runtime (#9874)

* Update runtime.md

* Add JIT notes

* Update inlining notes

Co-authored-by: Andy Ayers <andya@microsoft.com>

* Remove whitespace

* Brevity

Co-authored-by: Rich Lander <rlander@microsoft.com>

* cleanup top links

---------

Co-authored-by: Aman Khalid (from Dev Box) <amankhalid@microsoft.com>
Co-authored-by: Andy Ayers <andya@microsoft.com>
Co-authored-by: Rich Lander <rlander@microsoft.com>

* Add ASP.NET Core release notes for .NET 10 Preview 4 (#9881)

* Add ASP.NET Core release notes for .NET 10 Preview 4

* Add IJSObjectReference to JS function

* Update release-notes/10.0/preview/preview4/aspnetcore.md

Co-authored-by: Martin Costello <martin@martincostello.com>

* Fix OpenAPI.NET version

* Add todo for remaining features

* Add WebApplicationFactory with Kestrel

* Update todos

* Update todos

* Add NavigationManager.NotFound

* Add Blazor WebAssembly runtime diagnostics

* Edits

* Edits

* Edits

---------

Co-authored-by: Martin Costello <martin@martincostello.com>

* cleanup

* linter

* Address default Blazor UI template update.

* Add hyphen to dotnet-gcdump

* some updates

* updates

* .NET MAUI in .NET 10 Preview 4 (#9873)

* .NET MAUI in .NET 10 Preview 4

* added new MAUI features

* updates for known issues

* updates

---------

Co-authored-by: James Montemagno <james.montemagno@gmail.com>

* fix up md

* Update install-linux.md

* Update install-macos.md

* Update install-windows.md

* Update releases.json

* Updated release date in README.md

* Updated line16 with preview4 in releases.json

---------

Co-authored-by: maumar <maumar@microsoft.com>
Co-authored-by: Merrie McGaw <mmcgaw@microsoft.com>
Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>
Co-authored-by: victorisr <victorisr@microsoft.com>
Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
Co-authored-by: Carlos Sánchez López <1175054+carlossanlop@users.noreply.github.com>
Co-authored-by: Rich Lander <rlander@microsoft.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
Co-authored-by: Harshit <62823486+harshit7962@users.noreply.github.com>
Co-authored-by: Aman Khalid (from Dev Box) <amankhalid@microsoft.com>
Co-authored-by: Andy Ayers <andya@microsoft.com>
Co-authored-by: Daniel Roth <daroth@microsoft.com>
Co-authored-by: David Ortinau <david.ortinau@microsoft.com>
Co-authored-by: padmasrid <38444564+padmasrid@users.noreply.github.com>
2025-05-13 10:32:54 -07:00

5.2 KiB

Entity Framework Core 10 Preview 4 - Release Notes

Here's a summary of what's new in Entity Framework Core in this preview release:

Entity Framework Core 10 updates:

Full-text search support on Azure Cosmos DB for NoSQL

Azure Cosmos DB now offers support for full-text search. It enables efficient and effective text searches, as well as evaluating the relevance of documents to a given search query. It can be used in combination with vector search to improve the accuracy of responses in some AI scenarios. EF Core 10 is adding support for this feature allowing for modeling the database with full-text search enabled properties and using full-text search functions inside queries targeting Azure Cosmos DB.

Here is a basic EF model configuration enabling full-text search on one of the properties:

public class Blog
{
    ...

    public string Contents { get; set; }
}

public class BloggingContext
{
    ...

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        modelBuilder.Entity<Blog>(b =>
        {
            b.Property(x => x.Contents).EnableFullTextSearch();
            b.HasIndex(x => x.Contents).IsFullTextIndex();
        });
    }
}

Once the model is configured, we can use full-text search operations in queries using methods provided in EF.Functions:

var cosmosBlogs = await context.Blogs.Where(x => EF.Functions.FullTextContains(x.Contents, "cosmos")).ToListAsync();

The following full-text operations are currently supported: FullTextContains, FullTextContainsAll, FullTextContainsAny, FullTextScore.

For more information on Cosmos full-text search, see the docs.

EF Core now supports RRF (Reciprocal Rank Fusion) function, which combines vector similarity search and full-text search (i.e. hybrid search). Here is an example query using hybrid search:

float[] myVector = /* generate vector data from text, image, etc. */
var hybrid = await context.Blogs.OrderBy(x => EF.Functions.Rrf(
        EF.Functions.FullTextScore(x.Contents, "database"), 
        EF.Functions.VectorDistance(x.Vector, myVector)))
    .Take(10)
    .ToListAsync();

For more information on Cosmos hybrid search, see the docs.

Vector similarity search exits preview

In EF9 we added experimental support for vector similarity search. In EF Core 10, vector similarity search support is no longer experimental. We have also made some improvements to the feature:

  • EF Core can now generate containers with vector properties defined on owned reference entities. Containers with vector properties defined on owned collections still have to be created by other means. However, they can be used in queries.
  • Model building APIs have been renamed. A vector property can now be configured using the IsVectorProperty method, and vector index can be configured using the IsVectorIndex method.

For more information on Cosmos vector search, see the docs.

Small improvements

  • Translate COALESCE as ISNULL (#34171, contributed by @ranma42).
  • Support for some string functions taking char as arguments (#34999, contributed by @ChrisJollyAU).
  • Support for MAX/MIN/ORDER BY using decimal on SQLite (#35606, contributed by @ranma42).
  • Changed AsyncLocal to ThreadId for better Lazy loader performance (#35835, contributed by @henriquewr).

Everything else in Preview 4

Preview 4 contains: