Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions release-notes/10.0/preview/preview7/efcore.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,35 @@
# Entity Framework Core in .NET 10 Preview 7 - Release Notes

Here's a summary of what's new in Entity Framework Core in this preview release:
# Entity Framework Core 10 Preview 7 - Release Notes

- [Feature](#feature)
Entity Framework Core 10 updates:

Entity Framework Core updates in .NET 10:
- [What's new in Entity Framework Core 10](https://learn.microsoft.com/ef/core/what-is-new/ef-core-10.0/whatsnew) documentation
- [Breaking change in Entity Framework Core 10](https://learn.microsoft.com/ef/core/what-is-new/ef-core-10.0/breaking-changes)

- [What's new in EF Core 10](https://learn.microsoft.com/ef/core/what-is-new/ef-core-10.0/whatsnew) documentation
## Improved translation for parameterized collection

## Feature
A notoriously difficult problem with relational databases is queries that involve *parameterized collections*:

Something about the feature
```c#
int[] ids = [1, 2, 3];
var blogs = await context.Blogs.Where(b => ids.Contains(b.Id)).ToListAsync();
```

EF 10.0 introduces a new default translation mode for parameterized collections, where each value in the collection is translated into its own scalar parameter:

```sql
SELECT [b].[Id], [b].[Name]
FROM [Blogs] AS [b]
WHERE [b].[Id] IN (@ids1, @ids2, @ids3)
```

For more information, [see the EF release notes](https://learn.microsoft.com/ef/core/what-is-new/ef-core-10.0/whatsnew#parameterized-collection-translation).

## Small improvements and bug fixes

- Fix Microsoft.Data.Sqlite behavior around `DateTime`, `DateTimeOffset` and UTC, [see breaking change notes](https://learn.microsoft.com/ef/core/what-is-new/ef-core-10.0/breaking-changes#DateTimeOffset-read) ([#36195](https://github.com/dotnet/efcore/issues/36195)).
- Fix translation of `DefaultIfEmpty` in various scenarios ([#19095](https://github.com/dotnet/efcore/issues/19095), [#33343](https://github.com/dotnet/efcore/issues/33343), [#36208](https://github.com/dotnet/efcore/issues/36208)).

## Everything else in Preview 7

The full list of issues completed for Preview 7 can be found [here](https://github.com/dotnet/efcore/issues?q=is%3Aissue%20state%3Aclosed%20milestone%3A10.0.0%20label%3Apreview-7).