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