Пример #1
0
        public bool IsValid(List <RawTableRow> rawDataRows)
        {
            var leftIsValid  = EvaluateSide(rawDataRows, _Expression.Left);
            var rightIsValid = EvaluateSide(rawDataRows, _Expression.Right);

            return(HelperConditional.IsTrue(_Expression.Operator, leftIsValid, rightIsValid) ^ _InvertResult);
        }
Пример #2
0
        private bool EvaluateExpression(List <RawTableRow> rawDataRows, SqlBinaryBooleanExpression expression)
        {
            var leftIsValid  = Evaluate(rawDataRows, expression.Left);
            var rightIsValid = Evaluate(rawDataRows, expression.Right);

            return(HelperConditional.IsTrue(expression.Operator, leftIsValid, rightIsValid));
        }