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