Why don't the values from my linq queries appear immediately?

后端 未结 3 998
一生所求
一生所求 2020-12-10 18:42

I have the following block of linq queries to calculate some values for a report.

var items = (from trans in calclabordb.Sales_Transactions                
          


        
3条回答
  •  孤街浪徒
    2020-12-10 18:50

    I think you're a "victim" of deferred execution in LINQ. Check out this blog post which explains the concept:

    http://blogs.msdn.com/b/charlie/archive/2007/12/09/deferred-execution.aspx

提交回复
热议问题