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)); }
public string ToSQL(BinaryMultiplyExpression exp) { return(String.Format("{0} * {1}", exp.LeftExpression.ToSQL(), exp.RightExpression.ToSQL())); }