当我提交事务时,更新语句没有显示在我的 nhibernate 应用程序的控制台中,这让我有点恼火。
我在配置文件中使用 show_sql = true。据我所知,所有的选择语句都在显示。当我不使用交易时也会显示更新。
有人遇到过这种情况吗?我该如何解决?
谢谢!
最佳答案
答案在这里NHibernate not showing Update queries with ShowSql enabled
只需使用这个配置:
<property name="adonet.batch_size">0</property>
关于nhibernate - 在 nhibernate 中,当我提交事务时,sql 更新语句不会显示在控制台中。为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7957870/