要使用linq的in語法,
像是sql的
select * from AA where col in (select ….)
可以使用
像是sql的
select * from AA where col in (select ….)
可以使用
var ids = {1, 2, 3};
var query = from item in context.items
where ids.Contains( item.id )
select item;
來做查詢。
但是一使用LinqToExcel 這樣用舊直接掛了,出現
VisitSubQueryExpression method is not implemented