private void SetDatabaseFieldName(IPropDef propDef, string relationshipName)
{
var propertyWrapper = this.ClassDef.ClassType.GetProperty(relationshipName).ToPropertyWrapper();
if (!propertyWrapper.HasAttribute<AutoMapFieldNameAttribute>()) return;
var autoMapFieldNameAttribute = propertyWrapper.GetAttribute<AutoMapFieldNameAttribute>();
propDef.DatabaseFieldName = autoMapFieldNameAttribute.FieldName;
}