private static Filter AndAlso(BinaryExpression node)
        {
            Log.WriteLine(string.Format("    -> AndAlso      : {0}", node));
            Log.WriteLine(string.Format("    -> Left         : {0}", node.Left));
            Log.WriteLine(string.Format("    -> Right        : {0}", node.Right));

            return(FilterCombiner.CombineAnd(Parse(node.Left), Parse(node.Right)));
        }
        private static void ParseFilter(Expression node, SearchBody searchBody)
        {
            Log.WriteLine(string.Format("  -> Parse filter   : {0}", node));

            searchBody.Filter = FilterCombiner.CombineAnd(searchBody.Filter, FilterParser.Parse(ExpressionParser.Strip(node)));
        }
Exemple #3
0
        private static void ParseFilter(Expression node, FilteredQuery query)
        {
            Log.WriteLine(string.Format("   -> Parse filter  : {0}", node));

            query.Filtered.Filter = FilterCombiner.CombineAnd(query.Filtered.Filter, FilterParser.Parse(ExpressionParser.Strip(node)));
        }