private string FilterByAny(string columnName, IList <string> values) { if (String.IsNullOrWhiteSpace(ColumnName) || Values == null || !Values.Any()) { return(null); } var filterText = new StringBuilder(); foreach (var value in values) { if (String.IsNullOrWhiteSpace(filterText.ToString())) { filterText.Append($"{ColumnName.ToCamelCase()} eq {value}"); } filterText.Append($" or {ColumnName.ToCamelCase()} eq {value}"); } return(filterText.ToString()); }