private void SetupSingleRelationship()
{
var relationship = _boRelationshipMapper.Relationship;
if (relationship == null) _singleRelationship = null;
else if (relationship is ISingleRelationship)
{
_singleRelationship = (ISingleRelationship) relationship;
RelatedObjectClassDef = _singleRelationship.RelatedObjectClassDef;
}
else
{
string standardMessage = string.Format("The relationship '{0}' on '{1}' is not a single relationship. ",
RelationshipName, ClassDef.ClassNameFull);
throw new HabaneroDeveloperException(standardMessage + "Please contact your System Administrator.",
standardMessage +
"The 'RelationshipComboBoxMapper' can only be used for single relationships");
}
}