lambda表达式 多条件组合查询
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();