摘要:[LINQ] 學習筆記 1 - Grammar
query-expression ::= from-clause query-body
from-clause ::= FROM itemName IN srcExpr
query-body ::= join-clause* (from-clause join-clause* | let-clause | where-clause)* orderby-clause? (select-clause | groupby-clause) query-continuation?
join-clause ::= JOIN itemName IN srcExpr ON keyExpr EQUALS keyExpr (INTO itemName)?
let-clause ::= LET itemName = selExpr
where-clause ::= WHERE predExpr
orderby-clause ::= ORDERBY (keyExpr (ascending | descending)?)*
select-clause ::= SELECT selExpr
groupby-clause ::= GROUP selExpr BY keyExpr
query-continuation ::= INTO itemName query-body
(以上資料來自 Microsoft LINQ 學習手冊 新一代資料查詢技術 一書 ISBN:978-986-181-276-2 page 96)