TaskHub.Shared

TaskHub.Shared.Persistence.Abstractions

Core contracts for data access, unit of work, and persistence patterns.

Contents

Summary


This module defines the standardized interfaces that all persistence implementations (EF Core, Redis, etc.) must follow.

Key Interfaces

IRepository

Provides basic CRUD operations for domain entities. It ensures that the Domain layer remains independent of the database technology.

IUnitOfWork

Encapsulates a single transaction that can span multiple repositories. It ensures that all changes within the transaction are committed or rolled back as a single unit.

IOutboxRepository

Contract for saving and retrieving messages intended for eventual publication.