Open ronaldkipngetich8923 opened 4 years ago
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;
Joining with client side collection cannot be translated to server.
Better exception message?
Backlog for better exception message.
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.