private void CheckReverseRelationshipValid()
{
if (this.PropertyWrapper.HasMoreThanOneToOneReverseRelationship)
{
throw new InvalidDefinitionException("The Relationship '" + PropertyWrapper.Name
+
"' could not be automapped since there are multiple Single relationships on class '"
+ PropertyWrapper.RelatedClassType +
"' that reference the BusinessObject Class '"
+ PropertyWrapper.DeclaringClassName +
"'. Please map using ClassDef.XML or Attributes");
}
}
}