protected override CamlExpression VisitWhereUnaryComparisonExpression(CamlWhereUnaryComparisonExpression expression)
        {
            CamlLateBoundExpression lateBoundCond = expression as CamlLateBoundExpression;

            if (lateBoundCond != null)
            {
                return(lateBoundCond.Bind(this.Bindings));
            }
            return(base.VisitWhereUnaryComparisonExpression(expression));
        }
 protected override CamlExpression VisitWhereUnaryComparisonExpression(CamlWhereUnaryComparisonExpression expression)
 {
     if (expression.Operator == CamlUnaryOperator.IsNull || expression.Operator == CamlUnaryOperator.IsNotNull)
     {
         if (transformFields.Contains(expression.FieldName.Bind(this.Bindings)))
         {
             return(UpdateExpression(expression, expression.FieldName, expression.Operator == CamlUnaryOperator.IsNull));
         }
     }
     return(expression);
 }
Exemple #3
0
 /// <summary>
 /// Called when visiting a unary comparison expression inside a &lt;Where/&gt; element.
 /// </summary>
 /// <param name="expression">An instance of the <see cref="CamlWhereUnaryComparisonExpression"/> class representing the unary comparison expression.</param>
 /// <returns>When overriden, returns an expression to replace the expression given in arguments.</returns>
 protected virtual CamlExpression VisitWhereUnaryComparisonExpression(CamlWhereUnaryComparisonExpression expression)
 {
     return(expression);
 }
Exemple #4
0
 protected override CamlExpression VisitWhereUnaryComparisonExpression(CamlWhereUnaryComparisonExpression expression)
 {
     throw new NotSupportedException(String.Format("Unsupported {0} unary operator", expression.Operator));
 }
Exemple #5
0
 protected override CamlExpression VisitWhereUnaryComparisonExpression(CamlWhereUnaryComparisonExpression expression)
 {
     return(IsFieldAllowed(expression.FieldName.Bind(this.Bindings)) ? expression : Caml.False);
 }