Opens the transaction scope.

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

Syntax

C#
public IDisposable Scope()
Visual Basic
Public Function Scope As IDisposable

Return Value

An instance of an IDisposable that will close the scope when its Dispose()()()() method is called.

Implements

ITransaction..::..Scope()()()()

Remarks

The transaction tracks changes only when they are made inside an open scope.

Calling Dispose()()()() on the return value closes the scope.

Exceptions

ExceptionCondition
System..::..InvalidOperationException The State()()()() is not Open.

See Also