Paul Krill
Editor at Large

Microsoft reveals plans for Entity Framework 7.0

news
Dec 17, 20212 mins

Themes for the next version of the object-relational mapper for .NET include support for JSON columns and raw SQL queries for unmapped types.

multicolor flowchart design 91521493
Credit: Thinkstock

Entity Framework Core 7.0, a planned update to Microsoft’s open source, cross-platform, object-relational mapper (ORM), will focus on themes such as JSON and SQL queries

Also referred to as EF Core 7, or EF7, the update, due in November 2022, will be the the next release after EF Core 6, which arrived last month, according to a Microsoft blog post published December 15. There are no plans for a EF Core 6.1 release, Microsoft said.

Among the themes slated for investment in EF7 is JSON columns, with users able to save and query into JSON-based documents stored in relational database columns. The capability is slated to introduce a common mechanism and patterns for JSON support that can be implemented by any database provider. Plans call for working with the community to align existing implementations for PostgreSQL and MySQL while adding support for SQL Server and SQL Server Lite.

Also eyed for EF7 are raw SQL queries for unmapped types. This feature would allow applications to execute more types of raw SQL queries without dropping down to ADO.NET or using third-party libraries.

Microsoft said much work planned for EF7 involves improving the data access experience for .NET across different platforms and domains. This involves work in EF Core where needed but also work in other areas, with a focus on platforms such as the .NET MAUI cross-platform development framework, the ASP.NET Core web development framework, and the Azure Synapse analytics platform.

EF7 currently is targeted for use with .NET 6, but may be updated to a planned .NET 7 release. Other themes eyed for EF7 include:

  • Bulk updates that provide efficient, predicate-based updates for many database rows without loading data into memory.
  • Lifecycle hooks that allow applications to react when “interesting things happen” in EF code. These hooks enable notification of an application or library when certain conditions or actions occur for entities, properties, relationships, queries, context instances and other EF constructs.
  • Mapping of entities in a hierarchy to separate tables without taking the performance hit of table-per-type mapping.
  • Enabling code generated by dotnet ef database scaffold to be fully customized.
  • Mapping of inserts, updates, and deletes (CUD operations) to stored procedures.
  • Support for value generation when using value converters.
Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author