public override SqlObject Visit(SqlLiteralArrayCollection sqlLiteralArrayCollection)
        {
            SqlScalarExpression[] items = new SqlScalarExpression[sqlLiteralArrayCollection.Items.Count];
            for (int i = 0; i < sqlLiteralArrayCollection.Items.Count; i++)
            {
                items[i] = sqlLiteralArrayCollection.Items[i].Accept(this) as SqlScalarExpression;
            }

            return(SqlLiteralArrayCollection.Create(items));
        }
Esempio n. 2
0
        public override int Visit(SqlLiteralArrayCollection sqlLiteralArrayCollection)
        {
            int hashCode = SqlLiteralArrayCollectionHashCode;

            for (int i = 0; i < sqlLiteralArrayCollection.Items.Count; i++)
            {
                hashCode = CombineHashes(hashCode, sqlLiteralArrayCollection.Items[i].Accept(this));
            }

            return(hashCode);
        }
        public override void Visit(SqlLiteralArrayCollection sqlLiteralArrayCollection)
        {
            this.writer.Write("[");
            for (int i = 0; i < sqlLiteralArrayCollection.Items.Count; i++)
            {
                if (i > 0)
                {
                    this.writer.Write(", ");
                }

                sqlLiteralArrayCollection.Items[i].Accept(this);
            }
            this.writer.Write("]");
        }
Esempio n. 4
0
 public static SqlLiteralArrayCollection Create(IReadOnlyList <SqlScalarExpression> items)
 {
     return(SqlLiteralArrayCollection.Create(items));
 }
Esempio n. 5
0
 public abstract void Visit(SqlLiteralArrayCollection collection);
Esempio n. 6
0
 protected override void Visit(SqlLiteralArrayCollection collection)
 {
     this.rootName = string.Empty;
 }
Esempio n. 7
0
 protected abstract void Visit(SqlLiteralArrayCollection collection);