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().
精彩评论