Matches() public method

public Matches ( QueryExpressionTree expressionTree ) : bool
expressionTree WeenyMapper.Sql.QueryExpressionTree
return bool
 public void Visit(QueryExpressionTreeAndBranch tree)
 {
     foreach (var node in tree.Nodes)
     {
         var matcher = new QueryExpressionRowMatcher(_row);
         if (!matcher.Matches(node))
         {
             _isMatch = false;
             return;
         }
     }
 }
Example #2
0
 public void Visit(QueryExpressionTreeAndBranch tree)
 {
     foreach (var node in tree.Nodes)
     {
         var matcher = new QueryExpressionRowMatcher(_row);
         if (!matcher.Matches(node))
         {
             _isMatch = false;
             return;
         }
     }
 }
Example #3
0
        private bool MatchesQuery(Row row, SqlQuery query)
        {
            var matcher = new QueryExpressionRowMatcher(row);

            return(matcher.Matches(query.QueryExpressionTree));
        }