C# Class IQ.Data.RedundantSubqueryRemover

Removes select expressions that don't add any additional semantic value
Inheritance: DbExpressionVisitor
ファイルを表示 Open project: maravillas/linq-to-delicious Class Usage Examples

Public Methods

Method Description
Remove ( Expression expression ) : Expression

Protected Methods

Method Description
VisitProjection ( ProjectionExpression proj ) : Expression
VisitSelect ( SelectExpression select ) : Expression

Private Methods

Method Description
IsInitialProjection ( SelectExpression select ) : bool
IsNameMapProjection ( SelectExpression select ) : bool
IsSimpleProjection ( SelectExpression select ) : bool
RedundantSubqueryRemover ( ) : System

Method Details

Remove() public static method

public static Remove ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression

VisitProjection() protected method

protected VisitProjection ( ProjectionExpression proj ) : Expression
proj ProjectionExpression
return System.Linq.Expressions.Expression

VisitSelect() protected method

protected VisitSelect ( SelectExpression select ) : Expression
select SelectExpression
return System.Linq.Expressions.Expression