Hexagonal-architecture-ASP.NET-Core icon indicating copy to clipboard operation
Hexagonal-architecture-ASP.NET-Core copied to clipboard

This is not hexagonal architecture

Open MyEidos opened this issue 4 years ago • 1 comments

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.

MyEidos avatar Oct 03 '21 13:10 MyEidos

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:

image

Shouldn't Persistence depend on Domain layer?

Innokmm avatar Dec 08 '21 20:12 Innokmm