protected override Expression VisitIndexedColumn(SqlIndexedColumnExpression indexedColumnExpression) { if (indexedColumnExpression.LowercaseIndex) { this.Write("(lower("); } this.Visit(indexedColumnExpression.Column); if (indexedColumnExpression.LowercaseIndex) { this.Write("))"); } switch (indexedColumnExpression.SortOrder) { case SortOrder.Descending: this.Write(" DESC"); break; case SortOrder.Ascending: this.Write(" ASC"); break; case SortOrder.Unspecified: break; } return(indexedColumnExpression); }
protected virtual Expression VisitIndexedColumn(SqlIndexedColumnExpression indexedColumnExpression) { var newColumn = (SqlColumnExpression)this.Visit(indexedColumnExpression.Column); if (newColumn != indexedColumnExpression.Column) { return(new SqlIndexedColumnExpression(newColumn, indexedColumnExpression.SortOrder, indexedColumnExpression.LowercaseIndex)); } return(indexedColumnExpression); }
protected override Expression VisitIndexedColumn(SqlIndexedColumnExpression indexedColumnExpression) { return(indexedColumnExpression); }