Skip to main content
Table of Contents

Interface IUnitOfWork

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

Common base for read + write units-of-work. Provides explicit transaction control — callers obtain an ITransaction, run a sequence of repository operations, then commit via SaveChangesAsync(CancellationToken).

public interface IUnitOfWork
Extension Methods

Methods

StartAsync(CancellationToken)

Open a new transaction asynchronously.

Task<ITransaction> StartAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<ITransaction>