Select from following answers:- Save the return value of the query's ToList method.

- Set the ObjectTrackingEnabled property of the DataContext to True.
- Use a compiled query.
- All Above
To avoid executing a query multiple times, convert the results into any number of standard collection classes. It is easy to convert the results into a list or array using the standard query operators ToList() and ToArray().
You can use a compiled query to increase performance, but using a compiled query still executes the query each time.
Show Correct Answer
Source: MeasureUp.Com | |
Alert Moderator