Пример #1
0
        protected void Visit(SqlCollection collection)
        {
            switch (collection.Kind)
            {
            case SqlObjectKind.InputPathCollection:
                this.Visit(collection as SqlInputPathCollection);
                return;

            case SqlObjectKind.LiteralArrayCollection:
                this.Visit(collection as SqlLiteralArrayCollection);
                return;

            case SqlObjectKind.SubqueryCollection:
                this.Visit(collection as SqlSubqueryCollection);
                return;

            default:
                throw new InvalidProgramException(
                          string.Format(CultureInfo.InvariantCulture, "Unexpected SqlObjectKind {0}", collection.Kind));
            }
        }
 public static SqlAliasedCollectionExpression Create(
     SqlCollection collection,
     SqlIdentifier alias) => new SqlAliasedCollectionExpression(collection, alias);
Пример #3
0
 public static SqlArrayIteratorCollectionExpression Create(
     SqlIdentifier identifier,
     SqlCollection collection) => new SqlArrayIteratorCollectionExpression(identifier, collection);
 public static SqlArrayIteratorCollectionExpression Create(
     SqlIdentifier alias,
     SqlCollection collection)
 {
     return(new SqlArrayIteratorCollectionExpression(alias, collection));
 }