public override void VisitQueryModel(QueryModel queryModel)
        {
            base.VisitQueryModel(queryModel);

            var compositePredicateVisitor = new CompositePredicateExpressionTreeVisitor();

            foreach (var selectExpression in _queriesBySource.Values.Where(se => se.Predicate != null))
            {
                selectExpression.Predicate
                    = compositePredicateVisitor.VisitExpression(selectExpression.Predicate);
            }
        }
Exemple #2
0
        public override void VisitQueryModel(QueryModel queryModel)
        {
            base.VisitQueryModel(queryModel);
            var compositePredicateVisitor = new CompositePredicateExpressionTreeVisitor(
                QueryCompilationContext.QueryAnnotations.OfType <UseRelationalNullSemanticsQueryAnnotation>().Any());

            foreach (var selectExpression in _queriesBySource.Values.Where(se => se.Predicate != null))
            {
                selectExpression.Predicate
                    = compositePredicateVisitor.VisitExpression(selectExpression.Predicate);
            }
        }