Esempio n. 1
0
        public decimal Evaluate(BinaryMultiplyExpression binaryExp, object data, IEnumerable <object> parameters = null)
        {
            var paramArray = _GetParameterValues(binaryExp, data, parameters);

            var left  = paramArray[0];
            var right = paramArray[1];

            return(Convert.ToDecimal(left) * Convert.ToDecimal(right));
        }
Esempio n. 2
0
 public string ToSQL(BinaryMultiplyExpression exp)
 {
     return(String.Format("{0} * {1}", exp.LeftExpression.ToSQL(), exp.RightExpression.ToSQL()));
 }