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

GetRelatedPropName() public method

Using a set of heuristics the Related Property Name is determined from the RelationshipName and any attributes on the Property. I.e. The Property of the class that is related by One To One Relationship. I.e. The Property on the Class that is returned by the Property that is wrapped by the PropertyWrapper.
public GetRelatedPropName ( ) : string
return string
        public virtual string GetRelatedPropName()
        {
            var relatedClassType = this.PropertyWrapper.RelatedClassType;
            var relatedRelPropName = GetFkPropName(this.ReverseRelationshipName);

            return this.RelatedBoHasForeignKey
                       ? relatedRelPropName
                       : relatedClassType.GetPKPropName();

        }