protected override Expression VisitQuerySourceReferenceExpression (QuerySourceReferenceExpression expression)
{
ArgumentUtility.CheckNotNull ("expression", expression);
if (expression.ReferencedQuerySource is GroupJoinClause)
{
var message = string.Format (
"The results of a GroupJoin ('{0}') can only be used as a query source, for example, in a from expression.",
expression.ReferencedQuerySource.ItemName);
throw new NotSupportedException (message);
}
else
{
var message = string.Format (
"The expression declaring identifier '{0}' could not be found in the list of processed expressions. Probably, the feature declaring '{0}' "
+ "isn't supported yet.",
expression.ReferencedQuerySource.ItemName);
throw new KeyNotFoundException (message);
}
}