CodeProject: Modifying LINQ Expressions with Rewrite...
Rated • 1 review • programming, tutorials, tips, linq • codeproject.com
From the page: "Changing a LINQ expression dynamically (at runtime) depending on the userās input is one of the problems that are often discussed in forums and blogs. I know at least three solutions proposed by Tomas Petricek tomasp.net/blog/linq-expand.aspx [tomasp.net/blog/linq-expand.aspx] ), Joe Albahari albahari.com/nutshell/predicatebuilder.html [albahari.com/nutshell/predicatebuilder.html] ) and implemented in the DynamicQuery MS sample. In this article I want to show how rewrite rules can be defined as lambda expressions and used to transform expressions (queries). This technique may provide the following benefits: "


