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

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

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