EF CORE 7 RC1 released

EF CORE 7 RC1 released

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.

最后更新 9/15/2022 8:35 AM
Jeremy Likness
预计阅读 5 分钟
分类
.NET
标签
.NET C# EF Core ORM

原文链接: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 文档中的新增功能。您还可以阅读我们之前的博客文章中的功能深入探讨:

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.NETMicrosoft.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.

Documentation and feedback

所有 EF Core 文档的起点是docs.microsoft.com/ef/

请在dotnet/efcore GitHub 存储库上提交发现的问题和任何其他反馈。

The following links are provided for easy reference and access.

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.

Keep Exploring

延伸阅读

更多文章
同分类 / 同标签 10/14/2024

From Failure to Success: How to Delete SQLite Database Files in C#

SQLite, as a lightweight embedded database, is popular for its ease of use and deployment. However, developers may encounter some challenges when trying to delete SQLite database files. This article will share a case from failure to success, showing how to successfully delete SQLite database files in C#.

继续阅读