C# Class NLite.Data.Linq.Expressions.RedundantSubqueryRemover

Removes select expressions that don't add any additional semantic value
Inheritance: DbExpressionVisitor
Mostrar archivo Open project: netcasewqs/elinq 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.Collections.Generic

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