在nhibernate中,当我提交事务时,sql update语句不会显示在控制台中.为什么? [英] In nhibernate, when I commit my transaction, the sql update statements don't show in the console. Why?

查看:109
本文介绍了在nhibernate中,当我提交事务时,sql update语句不会显示在控制台中.为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我提交事务时,我有点生气,更新语句没有显示在我的nhibernate应用程序的控制台中.

I'm getting a little annoyed that the update statements don't show in the console in my nhibernate application when I commit my transactions.

我在配置文件中使用show_sql = true.据我所知,所有的select语句都在显示.当我不使用交易时,也会显示更新.

I'm using show_sql = true in the config file. As far as I can tell all the select statements are showing. Updates also show when I'm not using transactions.

以前有人发生过这种事吗?我该如何解决?

Has anyone had this happen to them before? How can I fix it?

谢谢!

推荐答案

答案在这里只需使用此配置:

<property name="adonet.batch_size">0</property>

这篇关于在nhibernate中,当我提交事务时,sql update语句不会显示在控制台中.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆