Есть вот такой запрос —
List<Guid> guids = new List<Guid>();
...
var res2 = from c in catsContext.Cats
where c.Guid == guids[0]
select c;
почему-то не работает, выдает ошибку — "LINQ to Entities does not recognize the method 'System.Guid get_Item(Int32)' method, and this method cannot be translated into a store expression."
если написать так, то сработает —
List<Guid> guids = new List<Guid>();
...
int xx = guids[0];
var res2 = from c in catsContext.Cats
where c.Guid == xx
select c;
подскажите в чем же дело, я новинький в Entities Framework