// just in order to avoid compiler error that base type doesn't contain parameterless constructor public ColumnOperandWithOrdering(ColumnOperand columnOperand, SPSearch.OrderDirection orderDirection) : base(string.Empty) { if (!string.IsNullOrEmpty(columnOperand.ColumnName)) { this.Initialize(columnOperand.ColumnName); } else { throw new ColumnOperandShouldContainNameException(); } this._orderDirection = orderDirection; }
public IOperand CreateColumnOperandWithOrdering(Expression expr, SPSearch.OrderDirection orderDirection) { var columnOperand = (ColumnOperand)CreateColumnOperand(expr, null); return new ColumnOperandWithOrdering(columnOperand, orderDirection); }