Entity Framework Core 3.1 和 Entity Framework 6.4 发布

Currently, the Entity Framework Core 3.1  and  Entity Framework 6.4  has been officially released.

Obtaining EF Core 3.1

EF Core 3.1 NuGet package is intended as a set of distribution. For example, to SQL Server provider to add to your project, you can use dotnet tool using the following command:

dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 3.1.0

When ASP.NET Core application for an earlier version of the upgrade to 3.1, you may also have to add EF Core package as an explicit dependency.

3.0 to 3.1 from the beginning to continue, .NET Core SDK no longer included dotnet ef command-line tool. Before performing the EF Core migration or scaffold command, you must install this package as a global or local tools. 3.1.0 To install the final version of the tool as a global tool, use the following command:

dotnet tool install --global dotnet-ef --version 3.1.0

It can be used with the new version of dotnet ef with older versions of the program running when using EF Core. However, the older version of the tool is not available for EF Core 3.1.

EF Core 3.1's new features

  • It is reported that, EF Core 3.1 The main objective is to improve the function and programs at EF Core 3.0 in. EF Core 3.1 will be a long-term support (LTS) version, support at least three years. EF Core 3.1 re-introduces support for .NET Standard 2.0, not like EF Core 3.0 as required .NET Standard 2.1. This means that the EF Core 3.1 will run on the .NET Framework supports the standard version.
  • In addition, this version also fixes more than 150 questions , but no major new features to be announced.

EF 6.4 What's New

  • And EF Core similar, EF main objective is to improve the functionality of 6.4 and programs offered in EF 6.3 in. To this end, the team repaired the important issues found in EF 6.3, to create a more stable release.

It is worth mentioning that, the official said, EF Core "5.0" version (ie version 3.1 after) the planning work has begun and is making good progress.

Details: https://devblogs.microsoft.com/dotnet/announcing-entity-framework-core-3-1-and-entity-framework-6-4/

Guess you like

Origin www.oschina.net/news/111875/entity-framework-core-3-1-and-entity-framework-6-4-released