I have a table that has multiple columns, one of which contains pipe separated values.
I found an answer that's partially what I'm looking for here but that assumes you're searching in one CSV-type list.
What I have is rows of data, one column (called serviceIDs) has data like 2|45|5|6
I want to be able to pass a value into a query something like this:
Select all rows where serviceIDs contains '5'
or
Select all rows where serviceIDs like '%5%'
But obviously neither of those are going to work properly. Is there a way to do this in LINQ?