Not sure if this is possible or not. I would like to create an array (or list / dictionary) containing some simple id, and use an array (or something else) in a lambda expression.
In the example below, UserId 15850 and 15858 should be returned
DbDataContext db = new DbDataContext();
int[] userIds = {15850, 15858};
var users = db.tblUsers.Where(x => x.UserId.Equals(userIds));
Is it possible or not?
thank
source
share