GetTransaction Method
NPersistence Reference Guide
Return the resource-level EntityTransaction object. The EntityTransaction instance may be used serially to begin and commit multiple transactions.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
EntityTransaction GetTransaction()

Return Value

EntityTransaction instance

Exceptions

ExceptionCondition
System..::..InvalidOperationException if invoked on a JTA entity manager

See Also