开发者

Changing CommandTimeout for nHibernate Session

开发者 https://www.devze.com 2022-12-18 01:57 出处:网络
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.I don\'t think you

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.


I don't think you can do this session-wide, but you can control timeouts for both individual IQuery and ICriteria with SetTimeout().

0

精彩评论

暂无评论...
验证码 换一张
取 消