public EqualTo ( string columnName, object equalTo ) : |
||
columnName | string | The column to filter within. |
equalTo | object | |
Résultat |
private ConditionNode CreateContainsStringWithinCommaSeparatedValuesCondition(string columnName, string csvValue) { Filter likeFilter = new Filter(); likeFilter.EqualTo(columnName, csvValue); likeFilter.OrLike(columnName, string.Format("{0},%", csvValue)); likeFilter.OrLike(columnName, string.Format("%,{0}", csvValue)); likeFilter.OrLike(columnName, string.Format("%,{0},%", csvValue)); ConditionNode condition = likeFilter._topNode; return(condition); }
private ConditionNode CreateContainsStringWithinCommaSeparatedValuesCondition(string columnName, string csvValue) { Filter likeFilter = new Filter(); likeFilter.EqualTo(columnName, csvValue); likeFilter.OrLike(columnName, string.Format("{0},%", csvValue)); likeFilter.OrLike(columnName, string.Format("%,{0}", csvValue)); likeFilter.OrLike(columnName, string.Format("%,{0},%", csvValue)); ConditionNode condition = likeFilter._topNode; return condition; }