I am using Entity Framework and I need to check if a product with name = \"xyz\" exists ...
I think I can use Any(), Exists() or First().
Which one is the b
Any() and First() is used with IEnumerable which gives you the flexibility for evaluating things lazily. However Exists() requires List.
Any()
First()
IEnumerable
Exists()
I hope this clears things out for you and help you in deciding which one to use.