Skip to content

Commit

Permalink
Fix JOINs in examples (#3831)
Browse files Browse the repository at this point in the history
  • Loading branch information
slch authored Apr 27, 2022
1 parent 939ced2 commit b901161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/core/Querying/ComplexQuery/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ join person in context.Set<Person>()
#region GroupJoin
var query = from b in context.Set<Blog>()
join p in context.Set<Post>()
on b.BlogId equals p.PostId into grouping
on b.BlogId equals p.BlogId into grouping
select new { b, grouping };
#endregion
}
Expand All @@ -42,7 +42,7 @@ on b.BlogId equals p.PostId into grouping
#region GroupJoinComposed
var query = from b in context.Set<Blog>()
join p in context.Set<Post>()
on b.BlogId equals p.PostId into grouping
on b.BlogId equals p.BlogId into grouping
select new { b, Posts = grouping.Where(p => p.Content.Contains("EF")).ToList() };
#endregion
}
Expand Down

0 comments on commit b901161

Please sign in to comment.