Interface IProjectionDb
Represents a database abstraction for SQL read-side projection persistence that extends the generic database interface IDb.
public interface IProjectionDb : IDb
- Inherited Members
Remarks
Use this marker interface to register a dedicated SQL database connection for projection stores
(e.g., SqlServerProjectionStore, PostgresProjectionStore) when read-side
projections should be persisted to a different database than the domain event store.
Separating read and write databases is a common CQRS pattern. Register IProjectionDb pointing to your read database and IDomainDb pointing to your write database.
This interface applies to SQL projection stores only. Document database projection stores
(Elasticsearch, CosmosDB, MongoDB) use their own SDK clients and are configured through
IOptions<T> rather than IDb.