in T-SQL, abbiamoIl 'in' predicato in Entity Framework
where empid in (1, 3, 5)
Ora supponiamo che ho un List<int>
, come faccio a scrivere una query LINQ to Entities, vale a dire un predicato per Where()
per ottenere la equivalente della query SQL precedente? O questo non è supportato affatto?
Grazie,
Questo potrebbe aiutare a uscire http://stackoverflow.com/questions/959752/where-in-clause-in-linq –