I\'m new in Linq and so I have these situation below.
Linq
Now below error during compilation, says Cannot implicitly convert type \'System.Linq.IQuery
Cannot implicitly convert type \'System.Linq.IQuery
var query = _db.Products.Where(x => true); if (bool) { query = query.Where(p => p.Id == id); }