Exemplo n.º 1
0
 void VisitX(SqlGroupingSet element)
 {
     foreach (var i in element.Items)
     {
         Visit(i);
     }
 }
Exemplo n.º 2
0
        public ICloneableElement Clone(Dictionary <ICloneableElement, ICloneableElement> objectTree, Predicate <ICloneableElement> doClone)
        {
            if (!doClone(this))
            {
                return(this);
            }

            if (!objectTree.TryGetValue(this, out var clone))
            {
                clone = new SqlGroupingSet();
                ((SqlGroupingSet)clone).Items.AddRange(Items.Select(i => (ISqlExpression)i.Clone(objectTree, doClone)));
            }

            return(clone);
        }