首页 > 解决方案 > 找不到方法:'System.Data.IDbCommand NHibernate.AdoNet.AbstractBatcher.get_CurrentCommand()'

问题描述

我正在尝试使用 Nhibernate (.net) 提交事务。

在我更新模型并提交后,我在 transaction.Commit (); :

找不到方法:'System.Data.IDbCommand NHibernate.AdoNet.AbstractBatcher.get_CurrentCommand()'。

我的代码是:

  session.Update(model);
  transaction.Commit ();
  session.Flush();
  session.Close();                                                                               

标签: asp.netado.net

解决方案


推荐阅读