Hello,
I thought I would throw an omni-search on my data.
So I made a function that returns any match on a string.
ex.
var results = (from d in db.MyData
where new string[]{ d.DataField1.ToString(), d.DataField2.ToString(), ... }.Contains(searchTerm)
select d);
But when I try to iterate over it I get The expression of type 'System.String[]' is not a sequence.
//blows up on first iteration
foreach(var v in results)
{...}
Can anyone give me a few pointers?
Thanks!