Run you later – Understanding deferred execution in LINQ
Introduction In this article I’m going to try to explain one of the most misunderstood features of LINQ – deferred execution – and the impact it might have on your code if you don’t fully understand what it means. What does deferred execution mean? According to the dictionary the word deferred means delayed or postponed. So deferred execution in LINQ means that the actual execution of a query is postponed to a later time. Let’s say that you’re using LINQ to SQL and want to use the following LINQ query: Dim cheapProducts = From p In db.Products _ Where p.ListPrice … Continue reading Run you later – Understanding deferred execution in LINQ