Exemplo n.º 1
0
            public void Visit(SelectInsertStatement selectInsertStatement)
            {
                var from = selectInsertStatement.Target as ReferenceFrom;

                if (from == null)
                {
                    return;
                }
                if (from.Name.IdentifierParts.Where(x => !string.IsNullOrWhiteSpace(x)).Count() == 1)
                {
                    from.Name.IdentifierParts = new List <string>()
                    {
                        "dbo", from.Name.IdentifierParts.Last()
                    };
                }
            }
Exemplo n.º 2
0
        public void Visit(SelectInsertStatement selectInsertStatement)
        {
            if (_innerVisitor != null)
            {
                selectInsertStatement.Accept(_innerVisitor);
            }
            if (selectInsertStatement.TopExpression != null)
            {
                selectInsertStatement.TopExpression.Accept(this);
            }

            selectInsertStatement.Target.Accept(this);

            if (selectInsertStatement.ColumnSpecification != null)
            {
                foreach (var column in selectInsertStatement.ColumnSpecification)
                {
                    column.Accept(this);
                }
            }

            selectInsertStatement.SelectStatement.Accept(this);
        }
Exemplo n.º 3
0
 public void Visit(SelectInsertStatement statement)
 {
     WriteInsert(statement);
     statement.SelectStatement.Accept(this);
 }
Exemplo n.º 4
0
 public void Visit(SelectInsertStatement selectInsertStatement)
 {
 }