C# Class CqlSharp.Linq.Query.WhereBuilder

Inheritance: BuilderBase
Mostra file Open project: reuzel/CqlSharp

Public Methods

Method Description
BuildWhere ( ProjectionExpression projection, Expression whereClause ) : ProjectionExpression
WhereBuilder ( Expression>.Dictionary parameterMap ) : CqlSharp.Linq.Expressions

Protected Methods

Method Description
VisitBinary ( BinaryExpression node ) : Expression
VisitConstant ( ConstantExpression node ) : Expression

Replaces constants with Cql Terms

VisitMethodCall ( MethodCallExpression node ) : Expression
VisitNew ( NewExpression node ) : Expression

Performs simple type checking to see if new expression will result in valid CQL type

Private Methods

Method Description
CreateRelation ( Expression left, Expression right, CqlExpressionType compareOp, CqlExpressionType compareOpSwitched ) : Expression

Shuffles identifier and term expression in the right order

Method Details

BuildWhere() public method

public BuildWhere ( ProjectionExpression projection, Expression whereClause ) : ProjectionExpression
projection CqlSharp.Linq.Expressions.ProjectionExpression
whereClause System.Linq.Expressions.Expression
return CqlSharp.Linq.Expressions.ProjectionExpression

VisitBinary() protected method

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

VisitConstant() protected method

Replaces constants with Cql Terms
protected VisitConstant ( ConstantExpression node ) : Expression
node System.Linq.Expressions.ConstantExpression The expression to visit.
return System.Linq.Expressions.Expression

VisitMethodCall() protected method

protected VisitMethodCall ( MethodCallExpression node ) : Expression
node System.Linq.Expressions.MethodCallExpression
return System.Linq.Expressions.Expression

VisitNew() protected method

Performs simple type checking to see if new expression will result in valid CQL type
protected VisitNew ( NewExpression node ) : Expression
node System.Linq.Expressions.NewExpression The expression to visit.
return System.Linq.Expressions.Expression

WhereBuilder() public method

public WhereBuilder ( Expression>.Dictionary parameterMap ) : CqlSharp.Linq.Expressions
parameterMap Expression>.Dictionary
return CqlSharp.Linq.Expressions