EF Core Hexagonal Data Layer

•
33
•

Implements high-performance, testable data persistence layers using Entity Framework Core and Hexagonal Architecture patterns.

This skill provides a standardized blueprint for building robust data persistence layers in .NET applications using Entity Framework Core. It focuses on the Hexagonal Architecture (Ports and Adapters) pattern to ensure a clean separation between domain logic and infrastructure. By providing patterns for repositories, Unit of Work, and Fluent API configurations, it enables developers to create maintainable, testable, and scalable database layers with built-in support for CQRS and resilient startup migrations.

Key Features

01Hexagonal Architecture implementation for decoupling domain and infrastructure
02Resilient migration runner with built-in exponential backoff and retry logic
03Fluent API configuration templates for complex entity and relationship mappings
0433 GitHub stars
05Standardized Repository and Unit of Work patterns for data consistency
06Automatic dependency injection registration via assembly scanning

Use Cases

01Setting up production-ready persistence for a new Domain-Driven Design project
02Implementing multi-schema database support for microservices and bounded contexts
03Refactoring a monolithic .NET application to a clean Hexagonal Architecture