1
我讀過複合主鍵將confuse the hell out of typical ORM code generators。哪些ORM與化合物PK最適合,哪些可以避免? (我對.NET特別感興趣)對複合主鍵的ORM支持
我讀過複合主鍵將confuse the hell out of typical ORM code generators。哪些ORM與化合物PK最適合,哪些可以避免? (我對.NET特別感興趣)對複合主鍵的ORM支持
我使用NHibernate成功地使用了複合鍵。
<class name="UserProfileField" table="UserProfileFields">
<composite-id>
<key-many-to-one name="Parent" column="UserId" lazy="false"/>
<key-property name="FieldName"/>
</composite-id>
...
同意NHibernate與複合鍵很好地工作。 – 2008-10-20 20:43:47