I have a large record set of people and each of those people are in a country.
I cam retrieve all people in Australia using Entity Framework with the following:
var people = db.People.Where(x=>x.Country == "Australia")
What I'm not sure how to do is to retrieve people that are in Country X or Country Y based on a set of Boolean values.
Ie:
bool USA = true;
bool Australia = false;
bool UK = true;
bool China = false;
How do I build a linq query that in this case would give me:
var people = db.People.Where(x=>x.Country == "USA" || x.Country == "UK")
Thanks