private static string termColumnOperatorToString(TermColumnOperator op) { switch (op) { case TermColumnOperator.Equal: return "="; case TermColumnOperator.Higer: return ">"; case TermColumnOperator.Lower: return "<"; case TermColumnOperator.HigerOrEqual: return ">="; case TermColumnOperator.LowerOrEqual: return "<="; default: return "CONTAINS"; } }
public static string ConvertToSqlString(TermColumnOperator op) { switch (op) { case TermColumnOperator.Equal: return "="; case TermColumnOperator.Higer: return ">"; case TermColumnOperator.Lower: return "<"; case TermColumnOperator.HigerOrEqual: return ">="; case TermColumnOperator.LowerOrEqual: return "<="; default: return "LIKE"; } }
internal SearchQueryTermColumn(string column, string value, TermColumnOperator operateur) { this.Column = column; this.Value = value; this.Operator = operateur; }