Maintaining multiple one-to-many
问题 Following on from NHibernate one-to-one vs 2 many-to-one Is there an easy way to maintain multiple one-to-many relationships which are being used as a pseudo one-to-one. E.g. If I have 2 entities, User and Contact, which are related by a FK on each (User.ContactId and Contact.UserID). What is the best way to maintain that each reference points at the other. It would be wrong for the system to update User with a different contact, but the Contact still references User... 回答1: Most likely you