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

GetOwningPropName() public method

Using a set of heuristics the Owning Property Name is determined from the RelationshipName and any attributes on the Property. I.e. The Property of the class that owns this One To One Relationship. I.e. The Property on the Class that owns the Property that wrapped by the PropertyWrapper.
public GetOwningPropName ( ) : string
return string
        public virtual string GetOwningPropName()
        {
            var ownerClassType = this.PropertyWrapper.DeclaringType;
            var owningFKPropName = GetFkPropName(this.RelationshipName);

            return this.OwningBoHasForeignKey 
                       ? owningFKPropName 
                       : ownerClassType.GetPKPropName();
        }