我想在linq中这样做: SQL:从客户中选择城市(“柏林”,“伦敦”,“马德里”,“伯尔尼”,“格拉兹”)
所以我有一个如下所示的字符串:
{
"A" : {
"B" : " SomeText "
}
}
字符串变量将更改...
非常感谢。
答案 0 :(得分:0)
好吧,我发现了...
string[] city2 = { "Berlin", "London", "Madrid", "Bern", "Graz" };
var query2 = from c in Customers
where city2.Contains(c.City)
select c;