Allows the application to define units of work, while maintaining abstraction from the
underlying transaction implementation
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public interface ITransaction : IDisposable |
Visual Basic |
---|
Public Interface ITransaction _ Inherits IDisposable |
Visual C++ |
---|
public interface class ITransaction : IDisposable |
Remarks
A transaction is associated with a ISession and is usually instanciated by a call to
ISession.BeginTransaction(). A single session might span multiple transactions since
the notion of a session (a conversation between the application and the datastore) is of
coarser granularity than the notion of a transaction. However, it is intended that there be
at most one uncommitted ITransaction associated with a particular ISession
at a time. Implementors are not intended to be threadsafe.