简体   繁体   中英

Enumerable.Any method is not supported

I have this code :

var jobs3 = _provider.Context.Query<JobResults>()
                     .Where(m => m.Groups.Any(y => userGroups.Contains(y.GroupName)))
                     .ToList();

This method gives me exception in the title. How can I fix this? Is there a way to run this method without using Any? Thanks.

我通过将IQueryable转换为List,处理该列表然后将其转换回IQueryable的方式解决了该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM