asp.net - 找不到方法:'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();
解决方案
推荐阅读
- r - R:绘制图形 - 'x' 是一个列表,但没有组件 'x' 和 'y'
- html - 悬停一个元素时如何更改其他元素
- javascript - 我正在尝试将带有 html 标签的 json 导入到我的 html 中。但它只是显示为巨大的字符串。我正在使用反应
- python - 逻辑回归sklearn中的参数“self”
- pandas - 如何比较具有相等值的列?
- c# - 如何使用 ASP.NET MVC C# Html 从视图中调用控制器中的函数
- javascript - 使用处理程序更新数组中的对象
- html - 如何将文字放在圆圈内?
- php - 在 HTML mailto 链接中使用 php
- php - 从 Ajax、FormData 发送图像并使用 PHP 接收的问题