Here's a summary of what's new in Entity Framework Core in this preview release:
- Enhanced database provider for Azure Cosmos DB for NoSQL
- GroupBy complex types
- Read-only primitive collections
Entity Framework Core 9:
- What's new in Entity Framework Core documentation.
- Discussion
.NET 9 Preview 4:
The EF Core database provider for Azure Cosmos DB for NoSQL has received the following updates:
- Role-based access control (RBAC) is supported by EF9 for both management and use of containers.
- Azure Cosmos DB for NoSQL does not support synchronous (blocking) access from application code. EF Core now blocks synchronous access by default, helping people fall into the pit-of-success of using async I/O.
- Cosmos primitive collection support has been updated to use the metadata and model building APIs from EF8
See Azure Cosmos DB for NoSQL in the What's New docs for more information.
Support for grouping (GroupBy
queries) that group by a complex type instance. The resulting SQL uses groups by all members, reflecting the value object semantics of complex types.
See GroupBy complex types in the What's New docs for more information.
EF8 introduced support for mapping arrays and mutable lists of primitive types. This has been expanded to include read-only collections declared as IReadOnlyList
, IReadOnlyCollection
, or ReadOnlyCollection
.
See Read-only primitive collections in the What's New docs for more information.
EF Core 9 Preview 4 (and Microsoft.Data.Sqlite) contains work from the EF Team at Microsoft (@roji @AndriySvyryd @maumar @ajcvickers @cincuranet @SamMonoRT @luisquintanilla) as well as contributions from the EF Core community. The community PRs in EF9 Preview 4 are: