Tuesday, June 12, 2012

expression trees

The last sentence on page 341 of C# 4.0 in a Nutshell reads: "An expression tree is an object model based on the types in System.Linq.Expressions that can be inspected at runtime (so that LINQ to SQL or EF can later translate it to a SQL statement.)" This means that chained operations on an IQueryable do not fire off sequentially as they do with an IEnumerable. Rather, the chain is inspected and there is an attempt made to translate its intent to an expression tree which may then become a SQL query.

book is making me LAUGH! analogy about how IEnumerable querie... on Twitpic

See also: red/black trees

No comments:

Post a Comment