Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net ORM对复合主键的支持_.net_Sql_Orm_Primary Key_Compound Key - Fatal编程技术网

.net ORM对复合主键的支持

.net ORM对复合主键的支持,.net,sql,orm,primary-key,compound-key,.net,Sql,Orm,Primary Key,Compound Key,我已经读过,复合主键会。哪些ORM最适合复合PKs,哪些应该避免?(我对.NET特别感兴趣)我成功地将NHibernate与复合键结合使用 <class name="UserProfileField" table="UserProfileFields"> <composite-id> <key-many-to-one name="Parent" column="UserId" lazy="false"/> <key

我已经读过,复合主键会。哪些ORM最适合复合PKs,哪些应该避免?(我对.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>
...

...