public string GetIdentifierOrUniqueKeyPropertyName(ISessionFactoryImplementor factory) { if (uniqueKeyPropertyName == null) { return(factory.GetIdentifierPropertyName(associatedClass)); } else { return(uniqueKeyPropertyName); } }