I am working with Entity Framework 4.1 and C #.
Which one is best for better performance?
If so, why? (any links for additional readings)?
bool isBoarding = invoice.Allocations.Where(a => a.Service.Key == "boarding").Count() > 0;
OR
bool isBoarding = invoice.Allocations.Any(a => a.Service.Key == "boarding");
Sampath
source share