DataSource for Entity Framework in WPF
C1.Data.Transactions Namespace / ClientTransaction Class / Scope Method

In This Topic
    Scope Method (ClientTransaction)
    In This Topic
    Opens the transaction scope.
    Syntax
    'Declaration
     
    Public Function Scope() As IDisposable
    public IDisposable Scope()

    Return Value

    An instance of an System.IDisposable that will close the scope when its System.IDisposable.Dispose method is called.
    Exceptions
    ExceptionDescription
    The ClientTransaction.State is not C1.LiveLinq.TransactionState.Open.
    Remarks

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

    Calling System.IDisposable.Dispose on the return value closes the scope.

    See Also