/// <summary> /// 创建大于运算表达式 /// </summary> /// <param name="left">左操作数</param> /// <param name="value">值</param> public static Expression Greater(this Expression left, object value) => left.Greater(Lambdas.Constant(value, left));
/// <summary> /// 创建小于等于运算表达式 /// </summary> /// <param name="left">左操作数</param> /// <param name="value">值</param> public static Expression LessEqual(this Expression left, object value) => left.LessEqual(Lambdas.Constant(value, left));
/// <summary> /// 获取Lambda表达式的值 /// </summary> /// <typeparam name="T">对象类型</typeparam> /// <param name="expression">表达式</param> public static object Value <T>(this Expression <Func <T, bool> > expression) => Lambdas.GetValue(expression);