Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.ApplyTransactionTimeout(IQuery, ISessionFactory) Method

Applies the current transaction timeout, if any, to the given Hibenrate query object.

[Visual Basic]
Public Overloads Shared Sub ApplyTransactionTimeout( _
   ByVal query As IQuery, _
   ByVal sessionFactory As ISessionFactory _
)
[C#]
public static void ApplyTransactionTimeout(
   IQuery query,
   ISessionFactory sessionFactory
);

Parameters

query
The Hibernate Query object.
sessionFactory
Hibernate SessionFactory that the Query was created for (can be
null
).

Exceptions

Exception Type Condition
ArgumentNullException If query argument is null.

See Also

SessionFactoryUtils Class | Spring.Data.NHibernate Namespace | SessionFactoryUtils.ApplyTransactionTimeout Overload List