tags:

views:

54

answers:

1

Can someone explain why i get an 'no translations to sql' error in 'results' statement if GetAddresses() returns IList but not if it returns IEnumerable?

var addresses= GetAddresses(dataContext);

results = results.Where(r => r.People.Any(a => Addresses.Contains(a)));
A: 

Have you tried:

 results = results.Where(r => r.People.Any(a => Addresses.Contains(a))).ToList();
Xaisoft