原文链接:https://devblogs.microsoft.com/dotnet/announcing-ef7-rc1/
Author: Jeremy Likness
The Wolf at the End of the Desert
Entity Framework Core 7 (EF7) Release Candidate 1 has been released! The team focuses on solving defects, making minor improvements, and putting the final touches on functionality.
在 GitHub 上查看EF7 RC1 更改的完整列表。
要详细了解 EF7 中的新增功能以及工作示例,请查看我们最新更新的 EF7 文档中的新增功能。您还可以阅读我们之前的博客文章中的功能深入探讨:
- 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](https://devblogs.microsoft.com/dotnet/
- EF7 Preview 1 – the beginning
EF 7 Prerequisites
- EF7 is targeted at. NET 6, which means it can be used on either. NET 6 (LTS) or. NET 7.
- EF 7 will not run on the. NET Framework.
EF7 是 EF Core 6.0 的继承者,不要与 EF6混淆。如果您正在考虑从 EF6 升级,请阅读我们的从 EF6 移植到 EF Core 的指南。
How to get the EF7 RC 1
EF7 is only distributed as a set of NuGet packages. For example, to add a SQL Server provider to your project, you can use the following command through the dotnet tool:
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 7.0.0-rc.1.22426.7
The following table links to the RC1 version of the EF Core package and describes their purpose.
| package | objective |
|---|---|
| Microsoft.EntityFrameworkCore | Main EF Core package independent of specific database providers |
| Microsoft.EntityFrameworkCore.SqlServer | Database providers for Microsoft SQL Server and SQL Azure |
| Microsoft.EntityFrameworkCore.SqlServer.NetTopologySuite | SQL Server support for spatial types |
| Microsoft.EntityFrameworkCore.Sqlite | SQLite's database provider, including native binaries for the database engine |
| Microsoft.EntityFrameworkCore.Sqlite.Core | SQLite's database provider, no packaged native binaries |
| Microsoft.EntityFrameworkCore.Sqlite.NetTopologySuite | SQLite support for spatial types |
| Microsoft.EntityFrameworkCore.Cosmos | Database provider for Azure Cosmos DB |
| Microsoft.EntityFrameworkCore.InMemory | in-memory database provider |
| Microsoft.EntityFrameworkCore.Tools | EF Core PowerShell command for the Visual Studio Package Manager console; use it to integrate tools such as scaffolding and migration with Visual Studio |
| Microsoft.EntityFrameworkCore.Design | Shared design-time components for EF Core tools |
| Microsoft.EntityFrameworkCore.Proxies | Delayed loading and change tracking agents |
| Microsoft.EntityFrameworkCore.Abstractions | Decoupling EF Core abstraction; use this for functions such as extended data annotations defined by EF Core |
| Microsoft.EntityFrameworkCore.Relational | Shared EF Core components for relational database providers |
| Microsoft.EntityFrameworkCore.Analyzers | EF Core's C#analyzer |
我们还发布了ADO.NET的Microsoft.Data.Sqlite.Core提供程序的候选版本 1 。
Install the EF 7 Command Line Interface (CLI)
Before executing EF 7 Core migration or scaffolding commands, you must install CLI packages as global or local tools.
To install RC tools globally, install them 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 the following command:
dotnet tool update --global dotnet-ef --version 7.0.0-rc.1.22426.7
This new version of EF 7 CLI can be used for projects that use older versions of EF Core runtimes.
daily build
EF7 候选版本与 .NET 7 候选版本一致。这些版本往往落后于 EF7 的最新工作。考虑使用每日构建来获取最新的 EF7 功能和错误修复。
Like the release candidate, daily builds require. NET 6.
NET Data Community Station Meeting
The. NET Data team now broadcasts live every other Wednesday at 10 a.m. Pacific Time, 1 p.m. Eastern Time, or 17:00 UTC. Join the information stream and ask questions about data-related topics of your choice, including the latest version candidate.
- 观看我们以前节目的 YouTube 播放列表
- 访问 .NET Community Standup页面预览即将举行的节目
- 提交您对嘉宾、产品、演示或其他内容的想法以涵盖
Documentation and feedback
所有 EF Core 文档的起点是docs.microsoft.com/ef/。
请在dotnet/efcore GitHub 存储库上提交发现的问题和任何其他反馈。
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 is very grateful to everyone who has used and contributed to EF over the years!
Welcome to EF7.