Skip to content

Commit 0556a9e

Browse files
committed
Fix code reference
Fixes #4871
1 parent c574492 commit 0556a9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/core/Miscellaneous/NewInEFCore9/QuerySample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ async Task<List<Post>> GetPostsForceConstantCollection(int[] ids)
215215
Console.WriteLine();
216216
Console.WriteLine("Aggregate over subquery/aggregate:");
217217
Console.WriteLine();
218-
// </AggregateOverSubquery>
218+
#region AggregateOverSubquery
219219
var latestPostsAverageRatingByLanguage = await context.Blogs.
220220
Select(x => new
221221
{
@@ -225,7 +225,7 @@ async Task<List<Post>> GetPostsForceConstantCollection(int[] ids)
225225
.GroupBy(x => x.Language)
226226
.Select(x => x.Average(xx => xx.LatestPostRating))
227227
.ToListAsync();
228-
// </AggregateOverSubquery>
228+
#endregion
229229

230230
// Max over decimal is not supported on Sqlite
231231
if (!context.UseSqlite)

0 commit comments

Comments
 (0)