Releases: dotnet/efcore
EF Core 8.0.5
This is a patch release of EF Core 8.0 containing only updates to dependencies. There are no additional fixes in this release beyond those already shipped in EF Core 8.0.4.
EF Core 7.0.19
Note: EF Core 7 is now out-of-support.
This is a patch release of EF Core 7.0 containing only updates to dependencies. There are no additional fixes in this release beyond those already shipped in EF Core 7.0.18.
EF Core 6.0.30
This is a patch release of EF Core 6.0 containing only updates to dependencies. There are no additional fixes in this release beyond those already shipped in EF Core 6.1.29.
EF Core 9.0 Preview 3
The team has been working primarily on EF Core internals, so there are no new big features in EF Core 9 (EF9) Preview 3. However, this means we really need people like you to run your code on these new internals and report back what you find. We want to fix bugs in the new internals as soon as possible in order to have a strong GA release later in the year.
That being said, there are several smaller enhancements included in preview 3. For full details, see What's new in EF Core 9. To discuss the EF9 release, go to Try EF Core 9 now! on GitHub.
Auto-compiled models
Auto-compiled models allow the EF Core compiled model to be automatically regenerated when the model project is built. This means you no longer need to remember to re-run the dotnet ef dbcontext optimize
command after your EF model changes. See Auto-compiled models in the What's New docs for more information.
Sugar for HierarchyId
path generation
First class support for the SQL Server HierarchyId
type was added in EF8. In EF9, a sugar method has been added to make it easier to create new child nodes in the tree structure. See Sugar for HierarchyId path generation in the What's New docs for more information.
Everything else in preview 3
Preview 3 contains:
EF Core 9 preview 3 (and Microsoft.Data.Sqlite) contains work from the EF Team at Microsoft (@roji @AndriySvyryd @maumar @ajcvickers @cincuranet @SamMonoRT @luisquintanilla) as well as contributions from the EF Core community. The community PRs in EF9 Preview 3 are:
- @lauxjpn: Cleanup duplicate tests (same test ID)
- @clement911: Fixed typo in getting-and-building-the-code.md
- @Rezakazemi890: 32943-Sugar for HierarchyId path generation
- @lauxjpn: Change Where_math(f)_log_new_base queries, so they fail if LOG() parameters are swapped
- @SteSinger: 33196 command timeout allow zero
EF Core 8.0.4
EF Core 8.0.4 is available on NuGet now. This is a patch release of EF Core 8 (EF8) containing only important bug fixes:
- Incorrect apply projection for complex properties
- The database default created by Migrations for primitive collections mapped to JSON is invalid
- Filtering by Contains with HierarchyId and AsSplitQuery is not working
- Unfulfillable nullable contraints are set for complex types with TPH entities
- OutOfMemoryException when creating migration using ef tool
- SQL Server: Should retry on 203
EF Core 7.0.18
This is a patch release of EF Core 7.0 containing only updates to dependencies. There are no additional fixes in this release beyond those already shipped in EF Core 7.0.17.
EF Core 6.0.29
This is a patch release of EF Core 6.0 containing only updates to dependencies. There are no additional fixes in this release beyond those already shipped in EF Core 6.1.28.
EF Core 9.0 Preview 2
The team has been working primarily on EF Core internals, so there are no new big features in EF Core 9 (EF9) Preview 2. However, this means we really need people like you to run your code on these new internals and report back what you find. We want to fix bugs in the new internals as soon as possible in order to have a strong GA release later in the year.
That being said, there are several smaller enhancements included in preview 2, many contributed by our community. For full details, see What's new in EF Core 9. To discuss the EF9 release, go to Try EF Core 9 now! on GitHub.
Improved queries
- Inlined uncorrelated subqueries
- In EF8, an IQueryable referenced in another query may be executed as a separate database roundtrip.
- See Inlined uncorrelated subqueries for full details.
- New ToHashSetAsync methods
- The
ToHashSet
methods have existed since .NET Core 2.0. In EF9, the equivalent async methods have been added. - See New
ToHashSetAsync<T>
methods for full details.
- The
Improved model building
- Specify caching for sequences
- EF9 allows setting the caching options for database sequences for any relational database provider that supports this.
- See Specify caching for sequences for full details.
- Specify fill-factor for keys and indexes
- EF9 supports specification of the SQL Server fill-factor when using EF Core Migrations to create keys and indexes.
- See Specify fill-factor for keys and indexes for full details.
Improved tooling
- Fewer rebuilds when using
dotnet ef
tools- EF9 invalidates build caches less often, resulting in faster re-builds.
- See Fewer rebuilds for full details.
Everything else in preview 2
Preview 2 contains:
EF Core 9 preview 2 (and Microsoft.Data.Sqlite) contains work from the EF Team at Microsoft (@roji @AndriySvyryd @maumar @ajcvickers) as well as contributions from the EF Core community. The community PRs in EF9 Preview 1 are:
- @Poppyto: stackalloc for BytesToDecimal
- @francopettinari: Microsoft.Data.Sqlite.Core issue with multiple Blob colums
- @wertzui: Added
ToHashSetAsync<T>
Extension methods onIQueryable<T>
- @Suchiman: Fix incremental builds
- @btecu: Cleanup asserts
- @EngincanV: Fix typos on DeleteBehavior.cs
- @petterh: Fix typos, doubled words
- @deano-hunter: Add fill factor to keys and unique constraints
EF Core 8.0.3
EF Core 8.0.3 is available on NuGet now. This is a patch release of EF Core 8 (EF8) containing only important bug fixes:
- Constructor calls when using inheritance with owned entities causes exceptions
- Missing package README file
- String properties with indexes are compared case insensitively on SQL Server
- Using SqliteConnection from an ASP.NET MVC (.NET Framework) application results in a few different exceptions
- Exception when using FromSql on entity with ComplexProperty
- IndexOutOfRange for EntityEntry.GetDatabaseValues() with complex type and TPH
- SQL Server Migrations - SqlOperation.Sql is stripped of all empty lines
- NullReferenceException in Get-Migration in EF Core 8
- Owned entity on genericly typed entity generates unwanted steps in new migrations
- Dotnet-ef mismatch causes apply Entity Framework migration fails when publishing an individual web app.
- Query never returns when DB value for column mapped to primitive collection is
EF Core 6.0.28
This is a patch release of EF Core 6.0 containing only updates to dependencies. There are no additional fixes in this release beyond those already shipped in EF Core 6.1.27.