you can configure the default timeout in the nh config. You can override the default if you use a query (hql, linq, criteria). Get & Load have a special meaning and only retrieve a single entity from the IM/DB* so configuring the timeout doesn't make sense in this context.
*unless you disabled lazy loading. if you want to retrieve a single entity and override the default timeout then you will need to use a query, not Get/Load. On Jan 10, 1:16 pm, Stefan <[email protected]> wrote: > Hi, is it possible to use a specific timeout value (independent from > hibernate-config) for a single call to ISession.Get<T>(object)? > This function does not provide a parameter for timeout. Is there > another way to tell my session, that I want to set a timeout that is > considered by Get<T>(object)? > I look forward to getting any help. > Kind regards. -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
