Skip to main content
Table of Contents

Namespace Stratara.EventSourcing.EntityFrameworkCore.Abstractions

Interfaces

IDbContext

Minimal DbContext surface that Stratara repositories program against, exposing the parts of DbContext needed for persistence without depending on the concrete EF Core type.

IIdentityDbContext

Marker for the DbContext that hosts the ASP.NET Core Identity tables (AspNetUsers, AspNetRoles, AspNetUserPasskeys, …) so consumer hosts can resolve the identity store separately from the write/read stores.

IReadDbContext

Marker for the read-side DbContext that projections write into and queries read from.

ITenantScopedDbContext

Implemented by DbContexts that carry an ambient tenant id used to install global query filters on entities that implement IMultiTenant.

IWriteDbContext

Marker for the write-side DbContext that hosts the event-sourcing tables (event_stream_entry, snapshot, command_log_entry, outbox_entry).

Enums

DatabaseProviderType

Identifies the relational database provider used by a Stratara DbContext so that convention helpers (e.g. JSON column mapping) can emit provider-appropriate metadata.