0
Linq 溫故知新
Howard 2013/12/13
先來個問題
提示
 SelectMany
解答
Aggregate
Aggregate - Simple
 This sample uses Aggregate to create a running product on the array that
calculates the total product...
Aggregate - Seed
 This sample uses Aggregate to
create a running account
balance that subtracts each
withdrawal from the ...
Deferred Execution
 The following sample shows how query execution is deferred
until the query is enumerated at a foreach...
Immediate Execution
 輸出結果如下,該怎麼做?
Query Reuse

請問輸出結果是?
cross join, inner join, outer join
資料如下:
cross join
 怎麼做?
inner join
 怎麼做?
outer join
 怎麼做?
References
 http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b
Upcoming SlideShare
Loading in...5
×

Linq 溫故知新

156

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
156
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Linq 溫故知新"

  1. 1. Linq 溫故知新 Howard 2013/12/13
  2. 2. 先來個問題
  3. 3. 提示  SelectMany
  4. 4. 解答
  5. 5. Aggregate
  6. 6. Aggregate - Simple  This sample uses Aggregate to create a running product on the array that calculates the total product of all elements.
  7. 7. Aggregate - Seed  This sample uses Aggregate to create a running account balance that subtracts each withdrawal from the initial balance of 100, as long as the balance never drops below 0.
  8. 8. Deferred Execution  The following sample shows how query execution is deferred until the query is enumerated at a foreach statement.  請問輸出結果是?
  9. 9. Immediate Execution  輸出結果如下,該怎麼做?
  10. 10. Query Reuse 請問輸出結果是?
  11. 11. cross join, inner join, outer join 資料如下:
  12. 12. cross join  怎麼做?
  13. 13. inner join  怎麼做?
  14. 14. outer join  怎麼做?
  15. 15. References  http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×