Initializes a child (nested) transaction, a new instance of the ClientTransaction class with a specified parent transaction.

Namespace:  C1.Data.Transactions
Assembly:  C1.Data.Entity (in C1.Data.Entity.dll)

Syntax

C#
public ClientTransaction(
	ClientTransaction parent
)
Visual Basic
Public Sub New ( _
	parent As ClientTransaction _
)

Parameters

parent
Type: C1.Data.Transactions..::..ClientTransaction
The parent transaction. Cannot be null.

Remarks

A child transaction is automatically committed/rolled back if its parent transaction is committed/rolled back.

Create a child transaction in cases where you need to open a new window for editing a portion of data that is being editing in an already open transaction.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThe parent is null.

See Also