Skip to content

Expand navigations on grouping key #29014

Open

Description

@smitpatel

Enabling group by entity type allows navigations to be written on the grouping key.
e.g.

context.Customers.GroupBy(c => c.Navigation).Select(g => g.Key.Navigation2)

These navigations on grouping key cannot be expanded/translated in normal way because normal path will try to add Join after GroupBy, which doesn't translate to SQL. If we add join before GroupBy then it still won't be available in selector after grouping. All navigations on grouping key required to be created using subquery form using correlation predicate (and SingleOrDefault if reference navigation)

Activity

  1. added this to the Backlog milestone on Sep 9, 2022
  2. added theissue type on Jun 15, 2025
  3. RezaBagheri8 commented on Sep 15, 2025

    @RezaBagheri8
  4. roji commented on Sep 15, 2025

    @roji
  5. RezaBagheri8 commented on Sep 15, 2025

    @RezaBagheri8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions