Пример #1
0
        public void Visit(QueryExpressionTreeOrBranch tree)
        {
            foreach (var node in tree.Nodes)
            {
                var whereClauseGenerator = new QueryExpressionTreeWhereClauseGenerator(_commandParameterFactory);
                var whereClause          = whereClauseGenerator.CreateWhereClause(node);

                _whereClause = _whereClause.Combine(whereClause, QueryCombinationOperation.Or);
            }
        }
        public void Visit(QueryExpressionTreeOrBranch tree)
        {
            foreach (var node in tree.Nodes)
            {
                var matcher = new QueryExpressionRowMatcher(_row);
                if (matcher.Matches(node))
                {
                    return;
                }
            }

            _isMatch = false;
        }