EFCore 3.1 - Exists query via Any; Query cannot be translated
问题 We're using EFCore 3.1 and trying to build a query using Exists by means of .Any() which spans 2 properties. var selectionCriteria = someHugeList.Select(sh => new { sh.Id, sh.StatusCode }).ToList() var resultsQry = _myContext.SomeClass .Include(sc => sc.DetailRecords) .Where(sc => selectionCriteria.Any(crit => crit.Id == sc.Id && crit.StatusCode == sc.StatusCode)); var results = await resultsQry.ToListAsync() When running this query (even with a small amount (5 items) of selection criteria