IDのリストを取得する検索方法があり、そのIDに基づいてクエリを制限したいと考えています。Where句が結果を返さない場合
のParam:IEnumerableをのfilterType
foreach (int id in filterType)
{
query = query.Where(q => q.Item1 == id);
}
私がしようとした場合:
foreach (int id in filterType)
{
query = query.Where(q => q.Item1 != id);
}
動作するようです。
誰でも知っていますか?
ありがとうございます。
感謝を! – markpcasey