Begin a unit of work and return the associated ITransaction object.
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function BeginTransaction As ITransaction |
C# |
---|
ITransaction BeginTransaction() |
Visual C++ |
---|
ITransaction^ BeginTransaction() |
JavaScript |
---|
function beginTransaction(); |
Return Value
A transaction instance
Remarks
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 hibernate.transaction_factory