开发者

Changing CommandTimeout for nHibernate Session

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜