Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.ApplyTransactionTimeout(ICriteria, ISessionFactory) Method

Applies the current transaction timeout, if any, to the given criteria object

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

Parameters

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

Exceptions

Exception Type Condition
ArgumentNullException If criteria argument is null.

See Also

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