Expression<Func<XXX, bool>> expression = t => true; expression = expression.And(t => t.AAA == 1); expression = expression.And(t => t.BBB > 1); var ds = products.AsQueryable().Where(expression).ToList();
Expression<Func<XXX, bool>> expression = t => true; expression = expression.And(t => t.AAA == 1); expression = expression.And(t => t.BBB > 1); var ds = products.AsQueryable().Where(expression).ToList();