Show / Hide Table of Contents

    IAdoDbTransactionManager.BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken = default) Method

    .NET Standard 2.x

    Asynchronously starts a database transaction with the specified isolation level.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

    Task<IAdoDbTransaction> BeginTransactionAsync(IsolationLevel isolationLevel, CancellationToken cancellationToken = default);
    

    Parameters

    isolationLevel System.Data.IsolationLevel

    The isolation level for the transaction.

    cancellationToken CancellationToken

    (Optional) A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns

    Task<IAdoDbTransaction>

    Returns a task that represents the asynchronous operation.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon