Exemplo n.º 1
0
        public bool Evaluate(BinaryGreaterThanOrEqualsExpression binaryExp, object data, IEnumerable <object> parameters = null)
        {
            var paramArray = _GetParameterValues(binaryExp, data, parameters);

            var left  = Convert.ToBoolean(paramArray[0]);
            var right = Convert.ToBoolean(paramArray[1]);

            return(_Compare(left, right) >= 0);
        }
Exemplo n.º 2
0
 public string ToSQL(BinaryGreaterThanOrEqualsExpression exp)
 {
     return(String.Format("{0} >= {1}", exp.LeftExpression.ToSQL(), exp.RightExpression.ToSQL()));
 }