private void SetRelationshipType(IRelationshipDef relDef) { var att = this.PropertyWrapper.GetAttribute<AutoMapManyToOneAttribute>(); if (att != null) relDef.RelationshipType = att.RelationshipType; }