Exemple #1
0
        protected override DbExpression VisitListInit(ListInitExpression exp)
        {
            object list = ExpressionEvaluator.Evaluate(exp);

            return(this.Visit(ExpressionExtension.MakeWrapperAccess(list, exp.Type)));
        }
Exemple #2
0
        protected override DbExpression VisitNewArray(NewArrayExpression exp)
        {
            object arr = ExpressionEvaluator.Evaluate(exp);

            return(this.Visit(ExpressionExtension.MakeWrapperAccess(arr, exp.Type)));
        }