S
shapper
Hello,
On a Linq query I have the following:
..Where(o => ids.Contains(o.Id) && o.SlideLocalized.Language.Code ==
language)
ids is a List<Int32>. I get the following error:
Method 'Boolean Contains(Int32)' has no supported translation to SQL.
If I change ids to and array of ints, ids[], I don't get the error.
Does this mean I can only do this using an array of ints?
Or is something wrong on how I am doing this in my Linq Query?
It is just feels strange that it works in an array but not with list.
Thanks,
Miguel
On a Linq query I have the following:
..Where(o => ids.Contains(o.Id) && o.SlideLocalized.Language.Code ==
language)
ids is a List<Int32>. I get the following error:
Method 'Boolean Contains(Int32)' has no supported translation to SQL.
If I change ids to and array of ints, ids[], I don't get the error.
Does this mean I can only do this using an array of ints?
Or is something wrong on how I am doing this in my Linq Query?
It is just feels strange that it works in an array but not with list.
Thanks,
Miguel