示例#1
0
            protected override Expression VisitConstant(ConstantExpression expression)
            {
                var value = expression.Value;
                if (value.DataType is QueryType)
                    hasSubQuery = true;

                return base.VisitConstant(expression);
            }
示例#2
0
            protected override Expression VisitConstant(ConstantExpression expression)
            {
                if (expression.Value.DataType is QueryType) {
                    TableNames = ((IQueryPlanNode)expression.Value.Value).DiscoverTableNames(TableNames);
                }

                return expression;
            }
示例#3
0
            protected override Expression VisitConstant(ConstantExpression expression)
            {
                var value = expression.Value;
                if (value.DataType is ArrayType) {
                    var exps = (IEnumerable<Expression>) value.Value;
                    VisitExpressionList(new ReadOnlyCollection<Expression>(exps.ToList()));
                }

                return base.VisitConstant(expression);
            }
            protected override Expression VisitConstant(ConstantExpression expression)
            {
                var value = expression.Value;
                if (value.DataType is QueryType) {
                    var planNode = (IQueryPlanNode) value.Value;
                    variables = planNode.DiscoverCorrelatedVariables(queryLevel + 1, variables);
                }

                return expression;
            }
示例#5
0
            protected override Expression VisitConstant(ConstantExpression expression)
            {
                var value = expression.Value;
                if (!value.IsNull) {
                    if (value.DataType is QueryType) {
                        isConstant = false;
                    } else if (value.DataType is ArrayType) {
                        var array = (IEnumerable<Expression>) value.Value;
                        if (array.Any(exp => !exp.IsConstant()))
                            isConstant = false;
                    }
                }

                return base.VisitConstant(expression);
            }
 protected override Expression VisitConstant(ConstantExpression expression)
 {
     return DoPrepare(expression);
 }
 protected override Expression VisitConstant(ConstantExpression expression)
 {
     returnType = expression.Value.DataType;
     return expression;
 }
示例#8
0
 protected virtual Expression VisitConstant(ConstantExpression expression)
 {
     return expression;
 }