Class ReadUnitOfWork<TDbContext>
- 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
TDbContextThe concrete read-store DbContext type.
- Inheritance
-
UnitOfWork<TDbContext>ReadUnitOfWork<TDbContext>
- Implements
- Derived
-
ProjectionsUnitOfWork<TDbContext>
- 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
contextFactoryIDbContextFactory<TDbContext>Factory used to create a new DbContext per transaction.