Skip to content

Commit 9de6731

Browse files
jamesmontemagnorojimartincostello
authored
Update efcore for preview 7 (#9998)
* Update efcore for preview 7 * Fill in EF 10 preview7 release notes * Update release-notes/10.0/preview/preview7/efcore.md Co-authored-by: Martin Costello <[email protected]> --------- Co-authored-by: Shay Rojansky <[email protected]> Co-authored-by: Martin Costello <[email protected]>
1 parent 6617d15 commit 9de6731

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
1-
# Entity Framework Core in .NET 10 Preview 7 - Release Notes
21

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

5-
- [Feature](#feature)
4+
Entity Framework Core 10 updates:
65

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

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

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

13-
Something about the feature
13+
```c#
14+
int[] ids = [1, 2, 3];
15+
var blogs = await context.Blogs.Where(b => ids.Contains(b.Id)).ToListAsync();
16+
```
17+
18+
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:
19+
20+
```sql
21+
SELECT [b].[Id], [b].[Name]
22+
FROM [Blogs] AS [b]
23+
WHERE [b].[Id] IN (@ids1, @ids2, @ids3)
24+
```
25+
26+
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).
27+
28+
## Small improvements and bug fixes
29+
30+
- 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)).
31+
- 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)).
32+
33+
## Everything else in Preview 7
34+
35+
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).

0 commit comments

Comments
 (0)