예제 #1
0
        public override bool IsValid(Expression expression)
        {
            _expressionFinder = new ExpressionFinder(this);
            if (IsQueryableResult(expression))
            {
                _expressionFinder.TryAddType(expression.Type.GetGenericArguments()[0]);
                _expressionFinder.Visit(expression);
            }

            return(_expressionFinder.FoundExpressions.Any());
        }