C# Class Shaolinq.Persistence.Linq.Optimizers.SqlRedundantColumnRemover

Removes duplicate column declarations that refer to the same underlying column.
Inheritance: Shaolinq.Persistence.Linq.Expressions.SqlExpressionVisitor
Datei anzeigen Open project: tumtumtum/Shaolinq

Public Methods

Method Description
Remove ( Expression expression ) : Expression

Protected Methods

Method Description
IsSameExpression ( Expression left, Expression right ) : bool
VisitColumn ( SqlColumnExpression column ) : Expression
VisitSelect ( SqlSelectExpression select ) : Expression

Private Methods

Method Description
SqlRedundantColumnRemover ( ) : System.Collections

Method Details

IsSameExpression() protected static method

protected static IsSameExpression ( Expression left, Expression right ) : bool
left System.Linq.Expressions.Expression
right System.Linq.Expressions.Expression
return bool

Remove() public static method

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

VisitColumn() protected method

protected VisitColumn ( SqlColumnExpression column ) : Expression
column Shaolinq.Persistence.Linq.Expressions.SqlColumnExpression
return System.Linq.Expressions.Expression

VisitSelect() protected method

protected VisitSelect ( SqlSelectExpression select ) : Expression
select Shaolinq.Persistence.Linq.Expressions.SqlSelectExpression
return System.Linq.Expressions.Expression