public override void Visit(SqlAliasedCollectionExpression sqlAliasedCollectionExpression)
 {
     sqlAliasedCollectionExpression.Collection.Accept(this);
     if (sqlAliasedCollectionExpression.Alias != null)
     {
         this.writer.Write(" AS ");
         sqlAliasedCollectionExpression.Alias.Accept(this);
     }
 }
示例#2
0
 protected override void Visit(SqlAliasedCollectionExpression expression)
 {
     if (expression.Alias != null)
     {
         this.rootName = expression.Alias.Value;
     }
     else
     {
         this.rootName = SqlCollectionRootNameExtractor.ExtractRootName(expression.Collection);
     }
 }
示例#3
0
        public override int Visit(SqlAliasedCollectionExpression sqlAliasedCollectionExpression)
        {
            int hashCode = SqlAliasedCollectionExpressionHashCode;

            hashCode = CombineHashes(hashCode, sqlAliasedCollectionExpression.Collection.Accept(this));
            if (sqlAliasedCollectionExpression.Alias != null)
            {
                hashCode = CombineHashes(hashCode, sqlAliasedCollectionExpression.Alias.Accept(this));
            }

            return(hashCode);
        }
 public override SqlObject Visit(SqlAliasedCollectionExpression sqlAliasedCollectionExpression)
 {
     return(SqlAliasedCollectionExpression.Create(
                sqlAliasedCollectionExpression.Collection.Accept(this) as SqlCollection,
                sqlAliasedCollectionExpression.Alias.Accept(this) as SqlIdentifier));
 }
 public abstract void Visit(SqlAliasedCollectionExpression collectionExpression);
 protected abstract void Visit(SqlAliasedCollectionExpression expression);