Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我读过复合主键会混淆典型的 ORM 代码生成器。哪些 ORM 最适合复合 PK,哪些应该避免?(我对 .NET 特别感兴趣)
我用复合键成功地使用了 NHibernate。
<class name="UserProfileField" table="UserProfileFields"> <composite-id> <key-many-to-one name="Parent" column="UserId" lazy="false"/> <key-property name="FieldName"/> </composite-id> ...