IObjectContext.IsInTransaction Method Example
import com.ms.mtx.*; // Find out if the object is in a transaction. if (!MTx.GetObjectContext().IsInTransaction()) { // If not, do something appropriate here. }