Wednesday, January 30, 2008

Deferred Execution in LINQ

To boost the performance in Linq deferred execution, Linq has provided a nice method
called ToArray() and ToList()

By using those method, you just need to execute query into database once and iterate locally through your array or list.

No comments: