Original link: https://devblogs.microsoft.com/dotnet/announcing-ef7-rc1/
Original author: Jeremy Likness
Translation: Desert End Wolf (with Google Translate assistance)
Entity Framework Core 7 (EF7) Release Candidate 1 has been released! The team focused on fixing bugs, minor improvements, and putting the finishing touches on features.
View the complete list of EF7 RC1 changes on GitHub.
To learn more about what's new in EF7 and see working examples, check out our latest updated What's New in EF7 documentation. You can also read the feature deep dives from our previous blog posts:
- EF7 Preview 7 – Interceptors
- EF7 Preview 6 – Performance
- EF7 Preview 5 – Table-per-Concrete Type (TPC)
- EF7 Preview 4 – DDD-friendly converters
- EF7 Preview 3 – customizable database-first scaffolding templates
- EF7 Preview 1 – the beginning
EF7 Prerequisites
- EF7 targets .NET 6, meaning it can be used on .NET 6 (LTS) or .NET 7.
- EF7 will not run on .NET Framework.
EF7 is the successor to EF Core 6.0 and should not be confused with EF6. If you are considering upgrading from EF6, read our guide on porting from EF6 to EF Core.
How to Get EF7 RC1
EF7 is distributed only as a set of NuGet packages. For example, to add the SQL Server provider to your project, you can use the following command with the dotnet tool:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 7.0.0-rc.1.22426.7
The table below links to the RC1 versions of the EF Core packages and describes their purpose.
| Package | Purpose |
|---|---|
| Microsoft.EntityFrameworkCore | The main EF Core package, independent of specific database providers |
| Microsoft.EntityFrameworkCore.SqlServer | Database provider for Microsoft SQL Server and SQL Azure |
| Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite | Spatial type support for SQL Server |
| Microsoft.EntityFrameworkCore.Sqlite | Database provider for SQLite, including the database engine's native binaries |
| Microsoft.EntityFrameworkCore.Sqlite.Core | Database provider for SQLite without bundled native binaries |
| Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite | Spatial type support for SQLite |
| Microsoft.EntityFrameworkCore.Cosmos | Database provider for Azure Cosmos DB |
| Microsoft.EntityFrameworkCore.InMemory | In-memory database provider |
| Microsoft.EntityFrameworkCore.Tools | EF Core PowerShell commands for the Visual Studio Package Manager Console; use this to integrate tools like scaffolding and migrations with Visual Studio |
| Microsoft.EntityFrameworkCore.Design | Shared design-time components for EF Core tools |
| Microsoft.EntityFrameworkCore.Proxies | Lazy loading and change tracking proxies |
| Microsoft.EntityFrameworkCore.Abstractions | Decoupled EF Core abstractions; use this for features like extended data annotations defined by EF Core |
| Microsoft.EntityFrameworkCore.Relational | Shared EF Core components for relational database providers |
| Microsoft.EntityFrameworkCore.Analyzers | C# analyzers for EF Core |
We have also released a Release Candidate 1 for the Microsoft.Data.Sqlite.Core provider for ADO.NET.
Installing the EF7 Command Line Interface (CLI)
Before executing EF7 Core migration or scaffolding commands, you must install the CLI package as a global or local tool.
To install the RC tool globally, install it using the following command:
dotnet tool install --global dotnet-ef --version 7.0.0-rc.1.22426.7
If you already have the tool installed, you can upgrade it with:
dotnet tool update --global dotnet-ef --version 7.0.0-rc.1.22426.7
This new version of the EF7 CLI can be used with projects running an older version of the EF Core runtime.
Daily Builds
EF7 release candidates align with .NET 7 release candidates. These versions tend to lag behind the latest work on EF7. Consider using daily builds to get the latest EF7 features and bug fixes.
Like the release candidate, daily builds require .NET 6.
.NET Data Community Standup
The .NET Data team now streams live every other Wednesday at 10:00 AM Pacific Time, 1:00 PM Eastern Time, or 17:00 UTC. Join the stream to ask questions on data-related topics of your choice, including the latest release candidate.
- Watch the YouTube playlist of our previous shows
- Visit the .NET Community Standup page to preview upcoming shows
- Submit your ideas for guests, products, demos, or other content to cover
Documentation and Feedback
The starting point for all EF Core documentation is docs.microsoft.com/ef/.
Please submit issues and any other feedback on the dotnet/efcore GitHub repository.
Useful Links
The following links are provided for easy reference and access.
- EF Core Community Standup Playlist: https://aka.ms/efstandups
- Main documentation: https://aka.ms/efdocs
- Issues and feature requests for EF Core: https://aka.ms/efcorefeedback
- Entity Framework Roadmap: https://aka.ms/efroadmap
- Bi-weekly updates: https://github.com/dotnet/efcore/issues/27185
Thanks from the Team
The EF team deeply appreciates everyone who has used and contributed to EF over the years!
Welcome to EF7.