Repository navigation
Whats new in EF9 docs - #4823
Merged
Merged
Conversation
maumar
force-pushed
the
whats_new_ef9
branch
4 times, most recently
from
September 30, 2024 09:55
a70c6ae to
c41c259
Compare
maumar
commented
Sep 30, 2024
| _ = await GetPostsForceConstantCollection([1, 2, 3]); | ||
|
|
||
| #region ForceConstantPrimitiveCollection | ||
| async Task<List<Post>> GetPostsForceConstantCollection(int[] ids) |
Contributor
Author
There was a problem hiding this comment.
maybe better do something like:
var ids = [1, 2, 3];
var query = context.Posts
.Where(e => e.Title == ".NET Blog" && EF.Constant(ids).Contains(e.Id))
.ToListAsync();rather than via method call? @roji
maumar
force-pushed
the
whats_new_ef9
branch
3 times, most recently
from
September 30, 2024 21:18
d70bff9 to
f73b7f5
Compare
roji
approved these changes
Oct 1, 2024
| Math.Log(d) | LOG(@d) | ||
| Math.Log(a, newBase) | LOG(@a, @newBase) | ||
| Math.Log10(d) | LOG10(@d) | ||
| Math.Max(x, y) | GREATEST(@x, @y) | EF Core 9.0 |
Member
There was a problem hiding this comment.
I'm not sure any more, did we have an inferior translation here before or was it not working at all?
Contributor
Author
There was a problem hiding this comment.
not supported before:
The LINQ expression 'DbSet<NullSemanticsEntity>()
.Where(n => Math.Max(
val1: n.Int,
val2: 14) > 20)' could not be translated. Additional information: Translation of method 'System.Math.Max' failed.
|
|
||
| <a name="azuresql-azuresynapse"></a> | ||
|
|
||
| ### Better support for Azure SQL and Azure Synapse |
Member
There was a problem hiding this comment.
For this one, I think we'll want to also document it inside the SQL Server provider docs (outside of the what's new) - and it would probably be a better idea to do both at the same time (and cross-link...), rather than having @cincuranet revisit this. But no big deal.
- Breaking change note for dotnet/efcore#33942 - Update function mappings Fixes #4765 Fixes #4805
SamMonoRT
approved these changes
Oct 1, 2024
AndriySvyryd
approved these changes
Oct 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
also:
Nullable<T>.ToString()efcore#33942Fixes #4765
Fixes #4805