Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's New for preview 5 #4744

Merged
merged 2 commits into from
Jun 11, 2024
Merged

What's New for preview 5 #4744

merged 2 commits into from
Jun 11, 2024

Conversation

ajcvickers
Copy link
Member

No description provided.

-->
[!code-csharp[NormalizeCount](../../../../samples/core/Miscellaneous/NewInEFCore9/QuerySample.cs?name=NormalizeCount)]

EF9 now generates a more efficient translation using `EXISTS`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show the previous SQL to show the optimization?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😆 I actually deleted it because I thought, "Shay will be proud of me for keeping it shorter!"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will fix this in an update tomorrow. Want to get the docs live now.

- Use relative
- Remove broken
@ajcvickers
Copy link
Member Author

Release notes draft

The team has been working primarily on EF Core internals, so there are no new big features in EF Core 9 (EF9) Preview 5. 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 5. 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.

Enhanced database provider for Azure Cosmos DB for NoSQL

We are working on significant updates in EF9 to the EF Core database provider for Azure Cosmos DB for NoSQL. For preview 5, these include:

  • Support for hierarchical partition keys
  • Use of any numeric, bool, string, or value-converted type as a partition key

See Azure Cosmos DB for NoSQL in the What's New docs for more information.

Query translation improvements

EF9 preview 5 contains three small enhancements to query translation:

  • Optimization of queries using Count != 0 or Count > 0
  • Null semantics for comparison operators
  • Translations for TimeOnly.FromDateTime and TimeOnly.FromTimeSpan

See LINQ and SQL translation in the What's New docs for more information.

Everything else in preview 5

Preview 4 contains:

EF Core 9 preview 5 and Microsoft.Data.Sqlite contain work from the EF Team at Microsoft (@roji @AndriySvyryd @maumar @ajcvickers @cincuranet @SamMonoRT @luisquintanilla).

@ajcvickers ajcvickers merged commit d5f9291 into main Jun 11, 2024
5 checks passed
@ajcvickers ajcvickers deleted the Pee5 branch June 11, 2024 17:10
@maumar
Copy link
Contributor

maumar commented Jun 13, 2024

null semantics for comparisons is coming in preview6: dotnet/efcore#30245 @ajcvickers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants