IsMatch() public méthode

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

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

            var matcher = new InMemoryRowMatcher(row, translatedExpression);

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

            if (matcher.IsMatch())
            {
                _isMatch = false;
            }
        }
Exemple #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;
                }
            }
        }
Exemple #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;
        }
Exemple #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;
        }