What's New in EF Core 9

Manager — SDE
Search for a command to run...

Manager — SDE
No comments yet. Be the first to comment.
← Previous: What’s new in ASP.NET Core 9.0 ML.NET continues to evolve as a full-featured, open-source machine learning framework for .NET developers, enabling you to create, train, and deploy custom ML models directly in your .NET applications. ML....
← Previous: What’s New in the SDK and Tooling for .NET 9 .NET Aspire is a set of tools, templates, and packages designed to help developers build observable, production-ready apps that embrace cloud-native and distributed computing best practices. .N...

← Previous: What’s New in .NET Libraries for .NET 9 The .NET 9 SDK introduces several new capabilities and improvements to streamline development workflows, enhance build and test experiences, improve NuGet security and performance, and provide great...

← Previous: What’s New in .NET MAUI for .NET 9 .NET 9 adds a wide range of enhancements and new APIs across the base class libraries. These improvements touch everything from low-level data structures and cryptography to JSON serialization, text pr...

← Previous: What’s New in ML.NET .NET Multi-platform App UI (.NET MAUI) in .NET 9 focuses on improving overall product quality, test coverage, performance, and stability. While previous releases introduced major new capabilities and controls, the emp...

← Previous: What’s new in ASP.NET Core 9.0 ML.NET continues to evolve as a full-featured, open-source machine learning framework for .NET developers, enabling you to create, train, and deploy custom ML models directly in your .NET applications. ML....

← Previous: What’s New in C# 13
Entity Framework Core 9 (EF9) continues to evolve as the go-to data access technology for .NET, delivering improvements in querying, modeling, migrations, cloud-native integrations, and performance. Building on EF Core 8, EF9 targets .NET 8 but can also be used with .NET 9, giving you flexibility in which runtime you adopt. EF9 introduces significant enhancements for working with Azure Cosmos DB, LINQ translations, hierarchical partition keys, and AOT compilation scenarios. It also brings refinements to migrations, model building, and tooling, ensuring a smoother experience for modern data-driven applications.
EF9 is scheduled for release in November 2024. Until then, you can use EF9 through daily builds, which contain the latest features and API tweaks. We strongly recommend testing new features against these daily builds to ensure you’re working with the most up-to-date functionality. EF9 supports both .NET 8 (LTS) and .NET 9 (STS), so you can choose the runtime that best fits your needs.
1. Azure Cosmos DB for NoSQL
EF9 brings a comprehensive overhaul of the Azure Cosmos DB provider, including:
string.Contains, date/time components).id fields and changing default discriminator names to $type. This improves interoperability with external systems and better aligns with JSON standards.Skip/Take operations.FromSql (rather than FromSqlRaw) for parameterized and safe raw SQL operations.2. LINQ and Query Translation Improvements
EF9 continues to refine its LINQ provider, improving SQL translation and performance:
GREATEST and LEAST functions for simpler and more efficient code.EF.Parameter and EF.Constant to force or prevent parameterization, balancing query plan reuse against potential performance gains.3. Enhanced Modeling and Compilation
Model building sees new features to reduce startup time and simplify configuration:
UseModel calls. With MSBuild integration, compiled models are automatically regenerated as the model changes, reducing friction.fill-factor for keys and indexes on SQL Server, controlling how index pages are filled and improving index maintenance and performance.4. Migrations and Seeding
Migrations and database initialization also benefit from enhancements:
.UseSeeding and .UseAsyncSeeding to conveniently insert initial data during context initialization.5. Tooling Improvements
The dotnet ef command experiences fewer unnecessary rebuilds, improving developer productivity. The team welcomes feedback to ensure these improvements don’t have unintended consequences.
EF Core 9 represents a substantial leap forward in cloud readiness, performance optimization, AOT integration, and interoperability with JSON-based and vector-based workloads. Whether you’re building with Azure Cosmos DB or optimizing SQL queries on relational databases, EF9 delivers greater control, safer migrations, and improved startup times.
In the next installment, we’ll explore What’s New in ASP.NET Core 9.0, examining how the latest changes improve web development, scaling, and performance on the modern web platform.
Next → What’s new in ASP.NET Core 9.0
Subscribe to the blog to stay updated on the latest .NET developments!
Follow on social media: