You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,33 @@ This enhancement removes a significant limitation when modeling complex domain h
77
77
78
78
For more information on inheritance mapping strategies, see [Inheritance](xref:core/modeling/inheritance).
79
79
80
+
## LINQ and SQL translation
81
+
82
+
<aname="linq-maxby-minby"></a>
83
+
84
+
### MaxBy and MinBy
85
+
86
+
EF Core now supports translating the LINQ `MaxByAsync` and `MinByAsync` methods (and their sync counterparts). These methods allow you to find the element with the maximum or minimum value for a given key selector, rather than just the maximum or minimum value itself.
87
+
88
+
For example, to find the blog with the most posts:
0 commit comments