How do I use the IN keyword under Code First?
SELECT * FROM table1 WHERE id IN (1,2,3);
Been looking around google and can't find anything unless the only way is raw sql.
How do I use the IN keyword under Code First?
SELECT * FROM table1 WHERE id IN (1,2,3);
Been looking around google and can't find anything unless the only way is raw sql.
This answer should help: https://stackoverflow.com/a/13342905/2892208
EF should decide how he render the script but I believe the .Contains method will fit here perfectly.