Ejemplo n.º 1
0
        public void TestLikeExpressionAccept()
        {
            Mock <KoraliumSqlVisitor> mock           = new Mock <KoraliumSqlVisitor>();
            LikeExpression            likeExpression = new LikeExpression();

            likeExpression.Accept(mock.Object);
            mock.Verify(x => x.VisitLikeExpression(likeExpression));
        }
Ejemplo n.º 2
0
        public override void VisitLikeExpression(LikeExpression likeExpression)
        {
            LikeVisitor likeVisitor = new LikeVisitor(_previousStage, _visitorMetadata);

            likeExpression.Accept(likeVisitor);

            //Add the properties that was found in the like visitor
            foreach (var usedProperty in likeVisitor.UsedProperties)
            {
                AddUsedProperty(usedProperty);
            }

            expressions.Push(likeVisitor.Expression);
        }