我有一个字符串的参数列表,并且我想编写一个查询,该查询返回一个字符串列表,其中包含表中存在的参数列表的值。我有以下查询,但我无法获取where子句:
List<string> TheListParameter = new List<string>{"string1", "string2", "string3"};
var TheOutput = (from t in MyDC.SomeTable
where t.SomeColumn.Contains(TheListParameter)
select t.SomeColumn).ToList();
如何编写此搜索查询的where
子句?
https://stackoverflow.com/questions/34710141
复制相似问题