Here's a summary of what's new in Entity Framework Core in this preview release:
- Auto-compiled models
- Sugar for
HierarchyId
path generation
Entity Framework Core 9:
- What's new in Entity Framework Core documentation.
- Discussion
.NET 9 Preview 3:
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.
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.
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