Пример #1
0
        public void Visit(NotLikeExpression op)
        {
            var leftArgs  = VisitChild(op.Left);
            var rightArgs = VisitChild(op.Right);

            _codeStack.Peek().CodeExpression = new CodeBinaryOperatorExpression(new CodeMethodInvokeExpression(new CodeTypeReferenceExpression(typeof(Helper)), "Like", leftArgs.CodeExpression, rightArgs.CodeExpression), CodeBinaryOperatorType.IdentityEquality, new CodePrimitiveExpression(false));
        }
Пример #2
0
 public void Visit(NotLikeExpression expression, CommonTree tree)
 {
     SetLine(expression, tree);
     Parent(tree).Children.Add(expression);
     VisitChildren(tree);
 }