dotnet / docs

This repository contains .NET Documentation.
https://learn.microsoft.com/dotnet
Creative Commons Attribution 4.0 International
4.24k stars 5.88k forks source link

Dependency diagram (fig 7.7) confusing #23966

Open elafnit opened 3 years ago

elafnit commented 3 years ago

Fig 7.7 would benefit from using some UML notation for how the dependencies are implemented. The current diagram, at first glace, seems to indicate that the Application layer would have a dependency on the Infrastructure layer. There is indeed a relationship between the 2 layer; however, this should be indicated as an inversion of control where the Infrastructure layer implements an interface and injects the implementation. UML provides a connector standard that most developer should know to understand the type of relationship.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

simonec commented 2 years ago

I was almost to create the same issue, below the diagram from the "red book" ddd-layer