Skip to main content
Table of Contents

Interface ITransaction

Namespace
Stratara.Abstractions.Persistence
Assembly
Stratara.Abstractions.dll

A scoped database transaction. Dispose to roll back implicitly; call SaveChangesAsync(CancellationToken) to commit.

public interface ITransaction : IAsyncDisposable
Inherited Members
Extension Methods

Methods

SaveChangesAsync(CancellationToken)

Commit pending changes asynchronously.

Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<int>

Number of rows affected by the commit.