0
我想寫入數據庫表使用NHibernate複合id。這是我使用的代碼,但它不起作用。C#與Nhibernate
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="NHibernatePets.junctionstatistic, NHibernatePets" lazy="true">
<composite-id>
<key-property name="junctionid" column="junctionid" type="int" />
<key-property name="roadid" column="roadid" type="int" />
</composite-id>
// other properties
</class>
</hibernate-mapping>
什麼沒有工作? – Rippo 2009-12-22 10:41:46
你的問題到底是什麼? – 2009-12-22 10:41:55
發佈你的類定義的代碼 – 2009-12-22 10:43:35