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 have to do following operations …
select * from users where userid in (userids);
I tried to solve this like this
var u = context.users.Where(o=> usersid.Contains(o=> o.userid)).Select(o=> o);
but it gives compilation error. how to solve this ?
Try to use this :
call the method like this :
This will solve your problem.