Begin a unit of work and return the associated ITransaction object.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
ITransaction BeginTransaction() |
Visual Basic |
---|
Function BeginTransaction As ITransaction |
Visual C++ |
---|
ITransaction^ BeginTransaction() |
Return Value
A transaction instanceRemarks
If a new underlying transaction is required, begin the transaction. Otherwise
continue the new work in the context of the existing underlying transaction.
The class of the returned ITransaction object is determined by
the property transaction_factory