I am working with Entity Framework 4.1 and C#.
Which one is the most suitable for best 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");