i have list users
, want select rows have username
fill users
list.
for example, users
list contains "joe" , "marry". want select rows have username
field "joe" or "marry". how write this?
list<string> users = new list<string>() {"joe", "marry"}; model = model.where(r => r.username ???
try this:
model = model.where(r => users.contains(r.username));
Comments
Post a Comment