How can I dynamically build a linq OR
query where one of several columns can match the search string? This is not that hard to do in SQL. For example:
SELECT ID, Title, Description, Comments, CreatedBy, CreatedOn, UpdatedBy, UpdatedOn
FROM Category
WHERE (Title LIKE '%Supplier%')
OR (Description LIKE '%Supplier%')
Sometimes I will need to add OR (Comments LIKE '%Supplier%')
or omit OR (Title LIKE '%Supplier%')
and that is why I want to build it dynamically.
I do not believe this is a duplicate question because the potential duplicate is not asked in a way that it can be found using the Stackoverflow search function.