From, let, where, join and orderby clauses
A query expression with a second from clause followed by a select clause from x1 in e1 is translated into (e1). SelectMany(x1 => e2, (x1, x2) => v) A query expression with a second from clause followed by something other than a select clause: from x1 in e1 is translated into from * in (e1). SelectMany(x1 => e2, (x1, x2) => new { x1, x2 }) A query expression with a let clause from x in e is translated into from * in (e). Select (x => new { x, y = f }) A query expression with a where clause from x in e is translated into from x in (e). Where (x => f) A query expression with a join clause without an into followed by a select clause from x1 in e1 is translated into (e1). Join(e2, x1 => k1, x2 => k2, (x1, x2) => v) A query expression with a join clause without an into followed by something other than a select clause from x1 in e1 is translated into from * in (e1). Join( A query expression with a join clause with an into followed by a select clause from x1 in e1 is translated into (e1). GroupJoin(e2, x1 => k1, x2 => k2, (x1, g) => v) A query expression with a join clause with an into followed by something other than a select clause from x1 in e1 is translated into from * in (e1). GroupJoin( A query expression with an orderby clause from x in e is translated into from x in (e). If an ordering clause specifies a descending direction indicator, an invocation of OrderByDescending or ThenByDescending is produced instead. The following translations assume that there are no let, where, join or orderby clauses, and no more than the one initial from clause in each query expression. The example from c in customers is translated into customers. The example from c in customers is translated into from * in customers. the final translation of which is customers. where x is a compiler generated identifier that is otherwise invisible and inaccessible. The example from o in orders is translated into from * in orders. the final translation of which is orders. where x is a compiler generated identifier that is otherwise invisible and inaccessible. The example from c in customers is translated into customers.Join(orders, c => c.CustomerID, o => o.CustomerID, The example from c in customers is translated into from * in customers. the final translation of which is customers. where x and y are compiler generated identifiers that are otherwise invisible and inaccessible. The example from o in orders has the final translation orders.
|