How to set Nhibernate LINQ Command Timeout using Session.Query
问题 Is anyone aware of a way to set the UnderlyingCriteria when using Session.Query ? I'm trying to set a more restrictive command timeout (or query timeout) for one specific query and I am trying to avoid adding that constraint on the connection or other querys in the session. I've found in the old QueryOver functionality you could use something like this // QueryOver returns a IQueryOver<T,T> an nHibernate class // with access to UnderlyingCriteria var query = Session.QueryOver<Puppy>(); query