NHibernate update on single property updates all properties in sql

后端 未结 2 1464
青春惊慌失措
青春惊慌失措 2021-02-13 13:19

I am performing a standard update in NHibernate to a single property. However on commit of the transaction the sql update seems to set all fields I have mapped on the table even

2条回答
  •  情歌与酒
    2021-02-13 13:57

    This is the normal behavior. You can try adding dynamic-update="true" to your class definition to override this behavior.

提交回复
热议问题