public void Visit(TranslatedQueryExpressionTreeLeaf tree) { var matcher = new InMemoryRowMatcher(_row, tree.QueryExpression, tree.TableIdentifier); if (!matcher.IsMatch()) _isMatch = false; }
private bool MatchesQuery(Row row, QueryExpression query) { var translatedExpression = query.Translate(ConventionReader); var matcher = new InMemoryRowMatcher(row, translatedExpression); return(matcher.IsMatch()); }
public void Visit(NotExpression expression) { var matcher = new InMemoryRowMatcher(_row, expression.Expression, _tableIdentifier); if (matcher.IsMatch()) { _isMatch = false; } }
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; } } }
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; }