- Exists is a method of
List<T>
, there is no such method on array orIEnumerable<T>
extensions. - Correct syntax of usage of this method is
x => s.Exists(y => y == x.id)
(you should pass predicate, i.e. method which returns boolean) - The difference is –
Contains
supported by Linq to Entities,Exists
is not supported.
3
solved LinqTOEntities difference beteen Exists and contains [closed]