所以我做了一个函数,返回字符串上的任何匹配。
var results = (from d in db.MyData
where new string[]{ d.DataField1.ToString(), d.DataField2.ToString(), ... }.Contains(searchTerm)
select d);
The expression of type 'System.String[]' is not a sequence.
//blows up on first iteration
foreach(var v in results)
{...}
谁能给我一些建议吗?
谢谢!