Hi i am using entity framework and LinQ. I have a table objects called users . i have a list called userids. i have to find all users where ids contains in the string. I hav
Assuming userids is an IEnumerable of the same type as User.userid, try changing your LINQ query to:
IEnumerable
User.userid
var u = context.users.Where(o=> userids.Contains(o.userid));