C# Class EFBootstrap.Caching.Evaluator

Enables the partial evaluation of queries.
http://msdn.microsoft.com/en-us/library/bb546158.aspx http://petemontgomery.wordpress.com/2008/08/07/caching-the-results-of-linq-queries/ Copyright notice http://msdn.microsoft.com/en-gb/cc300389.aspx#O
Show file Open project: JimBobSquarePants/EFBootstrap

Public Methods

Method Description
PartialEval ( Expression expression ) : Expression

Performs evaluation and replacement of independent sub-trees.

PartialEval ( Expression expression, bool>.Func functionCanBeEvaluated ) : Expression

Performs evaluation and replacement of independent sub-trees.

Private Methods

Method Description
CanBeEvaluatedLocally ( Expression expression ) : bool

Returns a value indicating whether the expression can be evaluated locally.

Method Details

PartialEval() public static method

Performs evaluation and replacement of independent sub-trees.
public static PartialEval ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression The root of the expression tree.
return System.Linq.Expressions.Expression

PartialEval() public static method

Performs evaluation and replacement of independent sub-trees.
public static PartialEval ( Expression expression, bool>.Func functionCanBeEvaluated ) : Expression
expression System.Linq.Expressions.Expression The root of the expression tree.
functionCanBeEvaluated bool>.Func A function that decides whether a given expression node can be part of the local function.
return System.Linq.Expressions.Expression