Hexagonal-architecture-ASP.NET-Core
Hexagonal-architecture-ASP.NET-Core copied to clipboard
This is not hexagonal architecture
The current project doesn't satisfy the requirements of hexagonal architecture. Ex: concrete (!) EF DB context (!) is used on the domain layer: public DealDomain(ApplicationDbContext dbContext)
Which creates strong coupling with DB layer.
I agree, the first thing I've noticed in the Domain layer is a reference to Persistence, which as per comment from MyEidos ends up as dependency to the EF:

Shouldn't Persistence depend on Domain layer?