public static Expression ExtractParameters(
            [NotNull] Expression expressionTree,
            [NotNull] QueryContext queryContext)
        {
            var functionEvaluationDisabledExpression = new FunctionEvaluationDisablingVisitor().Visit(expressionTree);
            var partialEvaluationInfo = EvaluatableTreeFindingExpressionVisitor.Analyze(functionEvaluationDisabledExpression);
            var visitor = new ParameterExtractingExpressionVisitor(partialEvaluationInfo, queryContext);

            return visitor.Visit(functionEvaluationDisabledExpression);
        }
Beispiel #2
0
        public static Expression ExtractParameters(
            [NotNull] Expression expressionTree,
            [NotNull] QueryContext queryContext)
        {
            var functionEvaluationDisabledExpression = new FunctionEvaluationDisablingVisitor().Visit(expressionTree);
            var partialEvaluationInfo = EvaluatableTreeFindingExpressionVisitor.Analyze(functionEvaluationDisabledExpression);
            var visitor = new ParameterExtractingExpressionVisitor(partialEvaluationInfo, queryContext);

            return(visitor.Visit(functionEvaluationDisabledExpression));
        }