Пример #1
0
        public void TestSelectScalarExpressionAccept()
        {
            Mock <KoraliumSqlVisitor> mock = new Mock <KoraliumSqlVisitor>();
            SelectScalarExpression    selectScalarExpression = new SelectScalarExpression();

            selectScalarExpression.Accept(mock.Object);
            mock.Verify(x => x.VisitSelectScalarExpression(selectScalarExpression));
        }
Пример #2
0
            public override void Visit(SelectScalarExpression node)
            {
                base.Visit(node);

                var identifier = new IdentifierVisitor();

                node.Accept(identifier);

                this.SelectNodes.Add(
                    String.Join(".", identifier.SelectNodes.Select(x => x.Value)
                                ));
            }