Begin a unit of work and return the associated ITransaction object.

Namespace: NHibernate
Assembly: 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 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 transaction_factory

See Also