IsMatch() public method

public IsMatch ( ) : bool
return bool
        public void Visit(TranslatedQueryExpressionTreeLeaf tree)
        {
            var matcher = new InMemoryRowMatcher(_row, tree.QueryExpression, tree.TableIdentifier);

            if (!matcher.IsMatch())
                _isMatch = false;
        }
Esempio n. 2
0
        private bool MatchesQuery(Row row, QueryExpression query)
        {
            var translatedExpression = query.Translate(ConventionReader);

            var matcher = new InMemoryRowMatcher(row, translatedExpression);

            return(matcher.IsMatch());
        }
Esempio n. 3
0
        public void Visit(NotExpression expression)
        {
            var matcher = new InMemoryRowMatcher(_row, expression.Expression, _tableIdentifier);

            if (matcher.IsMatch())
            {
                _isMatch = false;
            }
        }
Esempio n. 4
0
        public void Visit(TranslatedQueryExpressionTreeLeaf tree)
        {
            var matcher = new InMemoryRowMatcher(_row, tree.QueryExpression, tree.TableIdentifier);

            if (!matcher.IsMatch())
            {
                _isMatch = false;
            }
        }
        public void Visit(AndExpression expression)
        {
            foreach (var queryExpression in expression.Expressions)
            {
                var matcher = new InMemoryRowMatcher(_row, queryExpression);

                if (!matcher.IsMatch())
                {
                    _isMatch = false;
                    return;
                }
            }
        }
Esempio n. 6
0
        public void Visit(AndExpression expression)
        {
            foreach (var queryExpression in expression.Expressions)
            {
                var matcher = new InMemoryRowMatcher(_row, queryExpression);

                if (!matcher.IsMatch())
                {
                    _isMatch = false;
                    return;
                }
            }
        }
        public void Visit(OrExpression expression)
        {
            foreach (var queryExpression in expression.Expressions)
            {
                var matcher = new InMemoryRowMatcher(_row, queryExpression, _tableIdentifier);

                if (matcher.IsMatch())
                {
                    return;
                }
            }

            _isMatch = false;
        }
Esempio n. 8
0
        public void Visit(OrExpression expression)
        {
            foreach (var queryExpression in expression.Expressions)
            {
                var matcher = new InMemoryRowMatcher(_row, queryExpression, _tableIdentifier);

                if (matcher.IsMatch())
                {
                    return;
                }
            }

            _isMatch = false;
        }
        public void Visit(NotExpression expression)
        {
            var matcher = new InMemoryRowMatcher(_row, expression.Expression, _tableIdentifier);

            if (matcher.IsMatch())
                _isMatch = false;
        }