Skip to content
Advertisement

How to convert SQL to LINQ where it contains IN keyword in statement

I have got this SQL statement which I am trying to convert to LINQ.

I have not been able to do the IN part. Tried following but I am unable to complete it:

How do I write IN part of SQL in LINQ?

Advertisement

Answer

You can use Contains:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement