Пример #1
0
        public INode Clone()
        {
            ExpressionItem expressionItem = new ExpressionItem(m_expression.Clone());

            if (m_next != null)
            {
                expressionItem.Add((ExpressionItem)(m_next.Clone()));
            }

            return(expressionItem);
        }
Пример #2
0
        public INode Clone()
        {
            GroupByClause groupByClause = new GroupByClause();

            groupByClause.All = m_all;

            if (m_expression != null)
            {
                groupByClause.Expression = (ExpressionItem)(m_expression.Clone());
            }

            if (m_having != null)
            {
                groupByClause.Having = (IExpression)(m_having.Clone());
            }

            return(groupByClause);
        }
Пример #3
0
        public INode Clone()
        {
            FunctionCall functionCall = new FunctionCall(m_name);

            if (m_expressionArguments != null)
            {
                functionCall.ExpressionArguments =
                    (ExpressionItem)(m_expressionArguments.Clone());
            }

            functionCall.Distinct = m_distinct;

            if (m_star)
            {
                functionCall.Star = Wildcard.Value;
            }

            return(functionCall);
        }
Пример #4
0
        public INode Clone()
        {
            InsertStatement insertStatement = new InsertStatement();

            if (m_table != null)
            {
                insertStatement.Table = (DbObject)(m_table.Clone());
            }

            if (m_columnNames != null)
            {
                insertStatement.ColumnNames = (AliasedItem)(m_columnNames.Clone());
            }

            if (m_columnValues != null)
            {
                insertStatement.ColumnValues = (ExpressionItem)(m_columnValues.Clone());
            }

            return(insertStatement);
        }