Opens the transaction scope.
Namespace:
C1.Data.TransactionsAssembly: C1.Silverlight.Data.Entity (in C1.Silverlight.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
Exception | Condition |
---|---|
System..::..InvalidOperationException | The State()()()() is not Open()()()(). |