[Question] Recommended way of integrating EventFlow in solution with Clean Architecture approach #879
-
I was wondering how should I integrate EF in solutions created with Clean Architecture approach. May I make EF a dependency of Domain? Most of objects included in Domain should be probably a AggregateRoots and events applied on AggregateRoots should be included there too. I'm aware that the Domain should be dependency free but I cannot imagine how I can achieve that if I want to use EventFlow. Is there any example project/solution using Clean Architecture? Thanks in advance for any replies! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello michalSolarz, You are right, you must add the dependency in your domain. Think that EventFlow, gives you part of the tools to build your domain. I wouldn't see it as a dependency as such, I would see it as part of the domain. Best regards. P.S. |
Beta Was this translation helpful? Give feedback.
-
It seems that it is the easiest solution :) |
Beta Was this translation helpful? Give feedback.
Hello michalSolarz,
You are right, you must add the dependency in your domain. Think that EventFlow, gives you part of the tools to build your domain. I wouldn't see it as a dependency as such, I would see it as part of the domain.
Best regards.
P.S.
Correct me if I'm wrong please.