Skip to main content
Table of Contents

Class ReadUnitOfWork<TDbContext>

Namespace
Stratara.EventSourcing.EntityFrameworkCore.ReadStore
Assembly
Stratara.EventSourcing.EntityFrameworkCore.dll

Read-side unit of work over an IReadDbContext. Used directly by query handlers that do not need projection-specific repositories — projection writers should use ProjectionsUnitOfWork<TDbContext> instead.

public class ReadUnitOfWork<TDbContext> : UnitOfWork<TDbContext>, IReadUnitOfWork, IUnitOfWork where TDbContext : DbContext, IReadDbContext

Type Parameters

TDbContext

The concrete read-store DbContext type.

Inheritance
UnitOfWork<TDbContext>
ReadUnitOfWork<TDbContext>
Implements
Derived
Inherited Members
Extension Methods

Constructors

ReadUnitOfWork(IDbContextFactory<TDbContext>)

Read-side unit of work over an IReadDbContext. Used directly by query handlers that do not need projection-specific repositories — projection writers should use ProjectionsUnitOfWork<TDbContext> instead.

public ReadUnitOfWork(IDbContextFactory<TDbContext> contextFactory)

Parameters

contextFactory IDbContextFactory<TDbContext>

Factory used to create a new DbContext per transaction.