首页 新闻 赞助 找找看

NHibernate问题:batch update returned unexpected row count from update actual row count 0 expected 1

0
悬赏园豆:10 [已关闭问题] 关闭于 2011-08-21 15:37

<class name='InventoryDetails' dynamic-update='true' dynamic-insert='true' lazy='false' table='InventoryDetails'>
    <id column='Id' name='Id' type='Guid' access='nosetter.pascalcase-m-underscore' unsaved-value='00000000-0000-0000-0000-000000000000' >
      <generator class='guid'></generator>
    </id>
    <property name='Type' type='String'></property>
    <property name='MaterielId' type='String'></property>
    <property name='MaterielDemo' type='String'></property>
    <property name='Spaces' type='String'></property>
    <property name='Model' type='String'></property>
    <property name='Unit' type='String'></property>
    <property name='MonthNum' type='Double'></property>
    <property name='MonthPrice' type='Double'></property>
    <property name='MonthMoney' type='Double'></property>
    <property name='MonthInNum' type='Double'></property>
    <property name='MonthInPrice' type='Double'></property>
    <property name='MonthInMoney' type='Double'></property>
    <property name='MonthOutNum' type='Double'></property>
    <property name='MonthOutPrice' type='Double'></property>
    <property name='MonthOutMoney' type='Double'></property>
    <property name='MonthNowNum' type='Double'></property>
    <property name='MonthNowPrice' type='Double'></property>
    <property name='MonthNowMoney' type='Double'></property>
    <property name='NextNewDate' type='String'></property>
  </class>

我该如何配置主键那才是正确的?

求高手帮忙,谢谢各位了! 

Elliot.XiaHou的主页 Elliot.XiaHou | 初学一级 | 园豆:80
提问于:2011-08-21 14:50
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册