I am currently trying to define a dynamic query in Linq but I am receiving the following error:
My Query is the following:
valuesList = valuesList.Where("(position=1 OR value LIKE '%3%')")
What am I doing wrong?
Try this- You cannot pass string inside a linq statement
valuesList = valuesList.Where(x=>x.position == 1 || x.value.Contains(3))