-
Notifications
You must be signed in to change notification settings - Fork 628
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share the same entity between two features #42
Comments
The same question. |
@resfandiari @nvtanhh Hi, I had this same question before and I found 4 ways:
Doing this, you isolate the domain in one place. I like this way because you concentrate the business rules and in theory, it needs to be one. It has two difficulties with it. One it's the data folder, so I did the same to that domain folder. features/feature_1/presentation/... The second difficulty is the massive quantity of use cases will concentrate in the folder. For each feature is added, the use cases will send to domain folder and grow a lot. Visually, you will concentrate a lot of files in one folder. However, I don't see this as disadvantaged because you can use the use_case in any features.
Well in the end, all of this is about organize your folder project. Find one it fits for your project and use it and be happy =). Edit: if you read the comment: #23 |
Great course, thanks a lot.
How can I share an entity class between two features that use the same entity?
The text was updated successfully, but these errors were encountered: