更改nHibernate会话的CommandTimeout(Changing CommandTimeout for nHibernate Session)
如何在nHibernate中更改会话的命令Timeout。 我知道它可以在App.Config中完成,但我想仅为一个业务操作增加默认值。
How to change command Timeout for a session in nHibernate. I know it can be done in App.Config but I want to increase the default value only for one business operation.
最满意答案
我不认为你可以在会话范围内进行此操作,但您可以使用SetTimeout()控制单个IQuery和ICriteria的超时。
I don't think you can do this session-wide, but you can control timeouts for both individual IQuery and ICriteria with SetTimeout().
更多推荐
发布评论