예제 #1
0
        public bool Evaluate(BinaryNotEqualsExpression 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);
        }
예제 #2
0
 public string ToSQL(BinaryNotEqualsExpression exp)
 {
     return(String.Format("{0} NOT EQUALS {1}", exp.LeftExpression.ToSQL(), exp.RightExpression.ToSQL()));
 }