Skip to content

Improve exception for client-server join #21914

Description

@ronaldkipngetich8923

Processing of the LINQ expression 'DbSet
.Join(
outer: __p_0,
inner: domainUser => domainUser.DomainAccessID,
outerKeySelector: domain => domain.ID,
innerKeySelector: (domainUser, domain) => new {
domainUser = domainUser,
domain = domain
})' by 'NavigationExpandingExpressionVisitor' failed. This may indicate either a bug or a limitation in EF Core. See https://go.microsoft.com/fwlink/?linkid=2101433 for more detailed information.

Activity

  1. ronaldkipngetich8923 commented on Aug 3, 2020

    @ronaldkipngetich8923
    Author

    This is the code:

                    var userDomains = await GetUserDomainsAsync(adminId);
                
                    var users = await (from domainUser in _context.DomainUsers
                                       join domain in userDomains on domainUser.DomainAccessID equals domain.ID
    
                                       join user in _context.TvaUsers on domainUser.TvaUserID equals user.ID
                                       select new DomainUserViewModel
                                       {
                                           DomainModel = domain,
                                           TvaUserModel = _mapper.Map<TvaUserModel>(user)
                                       }).ToListAsync();
    
                    return users;
  2. smitpatel commented on Aug 3, 2020

    @smitpatel
    Contributor

    Joining with client side collection cannot be translated to server.

  3. roji commented on Aug 4, 2020

    @roji
    Member

    Better exception message?

  4. ajcvickers commented on Aug 7, 2020

    @ajcvickers
    Contributor

    Backlog for better exception message.

  5. added this to the Backlog milestone on Aug 7, 2020
  6. changed the title [-]Ef core [/-] [+]Improve exception for client-server join[/+] on Aug 7, 2020
  7. modified the milestones: Backlog, MQ on Sep 2, 2020
  8. removed their assignment
    on Feb 12, 2021
  9. added theissue type on Jun 15, 2025
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions