public override void Visit(SqlSelectItem sqlSelectItem)
 {
     sqlSelectItem.Expression.Accept(this);
     if (sqlSelectItem.Alias != null)
     {
         this.writer.Write(" AS ");
         sqlSelectItem.Alias.Accept(this);
     }
 }
Esempio n. 2
0
        public override int Visit(SqlSelectItem sqlSelectItem)
        {
            int hashCode = SqlSelectItemHashCode;

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

            return(hashCode);
        }
 public override SqlObject Visit(SqlSelectItem sqlSelectItem)
 {
     return(SqlSelectItem.Create(
                sqlSelectItem.Expression.Accept(this) as SqlScalarExpression,
                sqlSelectItem.Alias?.Accept(this) as SqlIdentifier));
 }