/// <summary> /// The name of the property on the associated entity to which our FK refers /// </summary> /// <param name="factory">The mappings... </param> /// <returns> The appropriate property name. </returns> public string GetIdentifierOrUniqueKeyPropertyName(IMapping factory) { if (IsReferenceToPrimaryKey) { return(factory.GetIdentifierPropertyName(GetAssociatedEntityName())); } else { return(uniqueKeyPropertyName); } }
/// <summary> /// The name of the property on the associated entity to which our FK refers /// </summary> /// <param name="factory">The mappings... </param> /// <returns> The appropriate property name. </returns> public string GetIdentifierOrUniqueKeyPropertyName(IMapping factory) { if (IsReferenceToPrimaryKey) { return factory.GetIdentifierPropertyName(GetAssociatedEntityName()); } else { return uniqueKeyPropertyName; } }