我试图修改以下代码行以接受一个好的老式IN
子句。修改LINQ表达式以接受IN子句
var searchResults = (
from s in allSites
orderby s.SiteDescription
where s.SiteDescription.StartsWith(siteDescription) &&
s.SiteLocation != null
select s);
我看了一些例子,但没有找到快速的地方。
我想补充一点,如:
WHERE s.SiteStatusId IN (3,4,5)
我怎样才能做到这一点?
一个简单的谷歌搜索会给你的结果不是问这里快。我不明白为什么人们不会Google! – Mayank 2011-02-16 10:10:39