December 1, 2009

Nice part of Manual: Advanced LINQ

I'm still reviewing the Manual & write its unfinished parts. Today I reviewed "Advanced LINQ" part originally written by Alex Gamzov, and it's ready for being shown now. It contains the following chapters:
  • Customizing LINQ translation
    Explains how to customize compilation to SQL and write custom LINQ expression rewriters.
  • Joins, casts, references, inheritance and subqueries in LINQ
    Explains how particular constructions are translated to SQL.
Both chapters must be really interesting. For example, custom LINQ rewriters allow to implement such methods, as .WhereAllowed(this IQueryable<T> query, Permission permission, Principal principal).