NHibernate:object references an unsaved
transient instance – save the transient instance before flushing
使用NHibernate时,多表级联更新时遇到这个错误:object references an unsaved transient instance – save the transient instance before flushing
解决方法:在<set>中,加入及联更新 cascade=”all”