- 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 –
Containssupported by Linq to Entities,Existsis not supported.
3
solved LinqTOEntities difference beteen Exists and contains [closed]