Linq 溫故知新
Upcoming SlideShare
Loading in...5
×
 

Linq 溫故知新

on

  • 207 views

 

Statistics

Views

Total Views
207
Views on SlideShare
207
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Linq 溫故知新 Linq 溫故知新 Presentation Transcript

  • 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 of all elements.
  • 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.
  • Deferred Execution  The following sample shows how query execution is deferred until the query is enumerated at a foreach statement.  請問輸出結果是?
  • 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