How do I perform an 'IN' query against delimited string?
How do I perform an 'IN' query against delimited string?
drettberg
Posts: 6Questions: 3Answers: 1
I am trying to get all records that have DisplayLocation_IDs within a delimited string (e.g. "1,6,12").
I have tried the following but I get "Incorrect syntax near '1'".
.Where( q => q.Where("DisplayLocation_ID", locIds, "in", false))
Any help is appreciated
This discussion has been closed.
Answers
Try:
The would then look like:
in the SQL.
Allan
Thanks Allan. Did the trick