亚音速/Linq不是序列错误这是什么意思

亚音速/Linq不是序列错误这是什么意思,linq,subsonic,Linq,Subsonic,嗨,我得到这个错误。 类型为“System.Collections.Generic.IEnumerable`1[System.String]”的表达式不是序列 这是我的密码 _session.All<Sentence>() .Select(T => new { Sentence = T, Descriptions = T.Sentence.Split(' ') }) .Where(S => S.Descriptions .Intersect

嗨,我得到这个错误。 类型为“System.Collections.Generic.IEnumerable`1[System.String]”的表达式不是序列

这是我的密码

_session.All<Sentence>()
        .Select(T => new { Sentence = T, Descriptions = T.Sentence.Split(' ') })
        .Where(S => S.Descriptions .Intersect(words).Any())
        .Select(R => R.Sentence)
        .Distinct();
\u session.All()
.Select(T=>new{session=T,Descriptions=T.session.Split(“”)})
.Where(S=>S.Descriptions.Intersect(words.Any())
.选择(R=>R.句子)
.Distinct();
words
是字符串列表


序列不是什么意思,我如何修复它。

编辑:好的,现在问题已经纠正了

我怀疑这是亚音速限制。您可以尝试以下方法:

.Where(S => S.Descriptions.Any(x => words.Contains(x)))

编辑:好的,现在问题已经纠正了

我怀疑这是亚音速限制。您可以尝试以下方法:

.Where(S => S.Descriptions.Any(x => words.Contains(x)))

嗨,对不起,是打字错误。我的代码中有.Where(S=>S.Descriptions.Intersect(words).Any()),但似乎我发布了错误的代码。@user351709:如果删除
Where
行,它是否有效(除非它显然给了你太多的结果)?我猜这只是一个亚音速限制…嗨,对不起,是打字错误。我的代码中有.Where(S=>S.Descriptions.Intersect(words).Any()),但似乎我发布了错误的代码。@user351709:如果删除
Where
行,它是否有效(除非它显然给了你太多的结果)?我猜这只是一个亚音速限制。。。