I have such code:
var utcNow = DateTime.UtcNow;
Expression<Func<MyEntity, bool>> condition = entity => entity.StartedAt <= utcNow && entity.EndedAt >= utcNow;
var query = this.dbSet.Where(condition);
var queryString = query.ToQueryString(); // Here, the query is just `select` without any `where` clause
return await this.dbSet.Where(condition);
The last row returns all records ignoring filtration. Why and how to solve it?