Habanero.Smooth.OneToOneAutoMapper.CheckReverseRelationshipValid C# (CSharp) Method

CheckReverseRelationshipValid() private method

private CheckReverseRelationshipValid ( ) : void
return void
        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");
            }
        }
    }