[Solved] LinqTOEntities difference beteen Exists and contains [closed]


  1. Exists is a method of List<T>, there is no such method on array or IEnumerable<T> extensions.
  2. 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)
  3. The difference is – Contains supported by Linq to Entities, Exists is not supported.

3

solved LinqTOEntities difference beteen Exists and contains [closed]