Skip to content
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

Why is the Product created in the Category entity class ? (in core) #1

Closed
punkouter2021 opened this issue Aug 19, 2019 · 2 comments
Closed
Assignees
Labels
good first issue Good for newcomers

Comments

@punkouter2021
Copy link

Seems strange that a category is creating reports?

@mehmetozkaya
Copy link
Member

Yes you are right, it is not meaningful, I was added this function due to give an example of loading responsibility into Entity classes, in this base repository there was no other place to add this functionality. Anyway I removed this function now, you can get latest version.
Also when I implemented real-world of this base repo in here I already removed that function -> you can check AspnetCoreRealWorld - Category.cs
In real-world example this logic implemented at Cart Entity which basically added new items into shopping-cart use case.

@mehmetozkaya mehmetozkaya self-assigned this Aug 22, 2019
@mehmetozkaya mehmetozkaya added the good first issue Good for newcomers label Aug 22, 2019
@mehmetozkaya mehmetozkaya pinned this issue Aug 22, 2019
@punkouter2021
Copy link
Author

Ok. This has been very helpful for me to study and hope you don't mind more questions as I use this as a starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants