public override AstElement Clone(Dictionary <AstElement, AstElement> alreadyClonedElements)
        {
            CommonTableExpressionQuery result = new CommonTableExpressionQuery();

            result.CommonTableExpressions = ArrayHelpers.CreateDeepCopyOfAstElementArray(_commonTableExpressions, alreadyClonedElements);
            result.Input = (QueryNode)_input.Clone(alreadyClonedElements);
            return(result);
        }
Ejemplo n.º 2
0
        public override AstElement Clone(Dictionary <AstElement, AstElement> alreadyClonedElements)
        {
            SortedQuery result = new SortedQuery();

            result.Input          = (QueryNode)_input.Clone(alreadyClonedElements);
            result.OrderByColumns = ArrayHelpers.CreateDeepCopyOfAstElementArray(_orderByColumns, alreadyClonedElements);
            return(result);
        }
Ejemplo n.º 3
0
        public override AstElement Clone(Dictionary <AstElement, AstElement> alreadyClonedElements)
        {
            BinaryQuery result = new BinaryQuery();

            result.Left  = (QueryNode)_left.Clone(alreadyClonedElements);
            result.Right = (QueryNode)_right.Clone(alreadyClonedElements);
            result.Op    = _op;
            return(result);
        }
Ejemplo n.º 4
0
        public override AstElement Clone(Dictionary <AstElement, AstElement> alreadyClonedElements)
        {
            DerivedTableReference result = new DerivedTableReference();

            result.Query                      = (QueryNode)_query.Clone(alreadyClonedElements);
            result.CorrelationName            = _correlationName;
            result.CorrelationNameSourceRange = _correlationNameSourceRange;
            return(result);
        }
Ejemplo n.º 5
0
        public override AstElement Clone(Dictionary <AstElement, AstElement> alreadyClonedElements)
        {
            CommonTableExpression result = new CommonTableExpression();

            result.TableName            = _tableName;
            result.TableNameSourceRange = _tableNameSourceRange;
            result.ColumnNames          = (Identifier[])_columnNames.Clone();
            result.QueryDeclaration     = (QueryNode)_queryDeclaration.Clone(alreadyClonedElements);
            result.CommonTableBinding   = _commonTableBinding;
            return(result);
        }