Linq – Where().Where() is AND or OR?

AND.

But you can use

AND

var test = db.table.Where(x=>x.id == x && x.name == name).ToList();

OR

var test = db.table.Where(x=>x.id == x || x.name == name).ToList();

Browse More Popular Posts

Leave a Comment