internal override Expression VisitParameter(ParameterExpression p) { if (p != box.ParamExpressionInScope) { throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, "Constructing or initializing instances of the type {0} with the expression {1} is not supported.", type, p.ToString())); } box.StartNewPath(); return(p); }
internal override Expression VisitParameter(ParameterExpression p) { if (p != box.ParamExpressionInScope) { throw new NotSupportedException("Can only project the last entity type in the query being translated."); } box.StartNewPath(); return(p); }