Select from following answers:- Avoid hitting the database multiple times.
- Don’t execute ToList() on the query
- Change the query to method syntax
- All Above
Because of the deferred execution nature of LINQ, you execute the query twice—one for getting the number of items, and one for getting all the orders
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator