Im trying to learn mvc and im stuck on something silly.
i have a list of int's which are the PK for a domain model. I want to query the db to get all the objects that have their pk's in the list. I cant fiugre out the code to query the db and searching brings all kinds of irellevent answers about drop down lists. Can anyone help?
something like this but this is wrong.
List<User> userList = db.Users.Where(x => x.UserID == idList);
EDIT The error im getting is this.
Operator '==' cannot be applied to operands of type 'int' and 'System.Collections.Generic.List'