C# Class Signum.Engine.Linq.ConditionsRewriter

Inheritance: Signum.Engine.Linq.DbExpressionVisitor
Datei anzeigen Open project: signumsoftware/framework Class Usage Examples

Public Properties

Property Type Description
inSql bool

Public Methods

Method Description
InSql ( ) : IDisposable
Rewrite ( Expression expression ) : Expression

Protected Methods

Method Description
VisitAggregate ( AggregateExpression aggregate ) : Expression
VisitBinary ( BinaryExpression b ) : Expression
VisitCase ( CaseExpression cex ) : Expression
VisitColumnDeclaration ( ColumnDeclaration c ) : ColumnDeclaration
VisitCommandAggregate ( CommandAggregateExpression cea ) : Expression
VisitIsNotNull ( IsNotNullExpression isNotNull ) : Expression
VisitIsNull ( IsNullExpression isNull ) : Expression
VisitJoin ( JoinExpression join ) : Expression
VisitOrderBy ( OrderExpression o ) : OrderExpression
VisitProjection ( ProjectionExpression proj ) : Expression
VisitSelect ( SelectExpression select ) : Expression
VisitSqlCast ( SqlCastExpression castExpr ) : Expression
VisitSqlFunction ( SqlFunctionExpression sqlFunction ) : Expression
VisitSqlTableValuedFunction ( SqlTableValuedFunctionExpression sqlFunction ) : Expression
VisitUnary ( UnaryExpression u ) : Expression
VisitUpdate ( UpdateExpression update ) : Expression
VisitWhen ( When when ) : When

Private Methods

Method Description
CombineConditions ( Expression left, Expression right, Func combinator ) : BinaryExpression
IsBooleanExpression ( Expression expr ) : bool
IsFalse ( Expression operand ) : bool
IsSqlCondition ( Expression expression ) : bool
IsTrue ( Expression operand ) : bool
MakeSqlCondition ( Expression exp ) : Expression
MakeSqlValue ( Expression exp ) : Expression
SmartAnd ( Expression left, Expression right, bool sortCircuit ) : Expression
SmartOr ( Expression left, Expression right, bool sortCircuit ) : Expression

Method Details

InSql() public method

public InSql ( ) : IDisposable
return IDisposable

Rewrite() public static method

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

VisitAggregate() protected method

protected VisitAggregate ( AggregateExpression aggregate ) : Expression
aggregate AggregateExpression
return System.Linq.Expressions.Expression

VisitBinary() protected method

protected VisitBinary ( BinaryExpression b ) : Expression
b System.Linq.Expressions.BinaryExpression
return System.Linq.Expressions.Expression

VisitCase() protected method

protected VisitCase ( CaseExpression cex ) : Expression
cex CaseExpression
return System.Linq.Expressions.Expression

VisitColumnDeclaration() protected method

protected VisitColumnDeclaration ( ColumnDeclaration c ) : ColumnDeclaration
c ColumnDeclaration
return ColumnDeclaration

VisitCommandAggregate() protected method

protected VisitCommandAggregate ( CommandAggregateExpression cea ) : Expression
cea CommandAggregateExpression
return System.Linq.Expressions.Expression

VisitIsNotNull() protected method

protected VisitIsNotNull ( IsNotNullExpression isNotNull ) : Expression
isNotNull IsNotNullExpression
return System.Linq.Expressions.Expression

VisitIsNull() protected method

protected VisitIsNull ( IsNullExpression isNull ) : Expression
isNull IsNullExpression
return System.Linq.Expressions.Expression

VisitJoin() protected method

protected VisitJoin ( JoinExpression join ) : Expression
join JoinExpression
return System.Linq.Expressions.Expression

VisitOrderBy() protected method

protected VisitOrderBy ( OrderExpression o ) : OrderExpression
o OrderExpression
return OrderExpression

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

VisitSqlCast() protected method

protected VisitSqlCast ( SqlCastExpression castExpr ) : Expression
castExpr SqlCastExpression
return System.Linq.Expressions.Expression

VisitSqlFunction() protected method

protected VisitSqlFunction ( SqlFunctionExpression sqlFunction ) : Expression
sqlFunction SqlFunctionExpression
return System.Linq.Expressions.Expression

VisitSqlTableValuedFunction() protected method

protected VisitSqlTableValuedFunction ( SqlTableValuedFunctionExpression sqlFunction ) : Expression
sqlFunction SqlTableValuedFunctionExpression
return System.Linq.Expressions.Expression

VisitUnary() protected method

protected VisitUnary ( UnaryExpression u ) : Expression
u System.Linq.Expressions.UnaryExpression
return System.Linq.Expressions.Expression

VisitUpdate() protected method

protected VisitUpdate ( UpdateExpression update ) : Expression
update UpdateExpression
return System.Linq.Expressions.Expression

VisitWhen() protected method

protected VisitWhen ( When when ) : When
when When
return When

Property Details

inSql public_oe property

public bool inSql
return bool