예제 #1
0
        /// <summary>
        /// Evaluates the specified expression.
        /// </summary>
        /// <param name="expression">The expression to evaluate.</param>
        /// <returns>Value of the expression.</returns>
        public QueryValue Visit(QueryGreaterThanExpression expression)
        {
            QueryScalarValue left, right;

            this.EvaluateBinaryArguments(expression, out left, out right);
            return(left.GreaterThan(right));
        }
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the QueryGreaterThanExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public override string Visit(QueryGreaterThanExpression expression)
 {
     return this.VisitBinaryExpession(expression, "{0} gt {1}");
 }
 /// <summary>
 /// Replaces the given expression.
 /// </summary>
 /// <param name="expression">Expression to replace.</param>
 /// <returns>Replaced expression.</returns>
 public virtual QueryExpression Visit(QueryGreaterThanExpression expression)
 {
     return(this.VisitBinaryExpression(expression, CommonQueryBuilder.GreaterThan));
 }
예제 #4
0
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the LinqBuiltInFunctionCallExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public virtual string Visit(QueryGreaterThanExpression expression)
 {
     throw new TaupoNotSupportedException("Not supported");
 }
 /// <summary>
 /// Resolves types for the specified expression.
 /// </summary>
 /// <param name="expression">The expression to resolve types for.</param>
 /// <returns>Expression with resolved types.</returns>
 public QueryExpression Visit(QueryGreaterThanExpression expression)
 {
     return(this.VisitBinaryExpressionWithBooleanResult(expression, CommonQueryBuilder.GreaterThan));
 }
예제 #6
0
 /// <summary>
 /// Generates System.CodeDom.CodeExpression from the given expression.
 /// </summary>
 /// <param name="expression">Expression from which System.CodeDom.CodeExpression is generated.</param>
 /// <returns>Generated System.CodeDom.CodeExpression.</returns>
 public virtual CodeExpression Visit(QueryGreaterThanExpression expression)
 {
     return(this.VisitBinaryExpression(expression, CodeBinaryOperatorType.GreaterThan));
 }
 /// <summary>
 /// Visits a QueryExpression tree whose root node is the QueryGreaterThanExpression.
 /// </summary>
 /// <param name="expression">The root node of the expression tree being visited.</param>
 /// <returns>Uri query string representing the expression.</returns>
 public override string Visit(QueryGreaterThanExpression expression)
 {
     return(this.VisitBinaryExpession(expression, "{0} gt {1}"));
 }