public Expression VisitSqlInExpression (SqlInExpression expression)
{
try
{
return VisitChildrenWithGivenSemantics (expression, SqlExpressionContext.SingleValueRequired);
}
catch (NotSupportedException ex)
{
var message = string.Format (
"The SQL 'IN' operator (originally probably a call to a 'Contains' method) requires a single value, so the following expression cannot "
+ "be translated to SQL: '{0}'.",
FormattingExpressionTreeVisitor.Format (expression));
throw new NotSupportedException (message, ex);
}
}