I'm trying to rewrite the following query as a separate statements:
var sql = Repository.Products.AsQueryable();
sql = sql.Where(x => x.Name == "aaaaa" || x.Name == "bbbbb");
If I do it like this:
sql = sql.Where(x => x.Name == "aaaaa");
sql = sql.Where(x => x.Name == "bbbbb");
then the resulting query is equal to:
sql = sql.Where(x => x.Name == "aaaaa" && x.Name == "bbbbb");
Is there any ideas how to do it the right way?