You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2021. It is now read-only.
You should have a repository per aggregate root, and not one global repository.
I think in this domain model, we currently have only one aggregate root, which would be Car
IMHO it makes no sense to have a method GetAllCustomizations; you'll rather retrieve the Customizations that are available per CarBodyType instead.
Actually, I'd create this model in a whole other fashion, but I do not know how 'free' you are to do so. I'd suggest to have an entity Car which has a property Brand and a property that reflects its type. That property should not be an entity itself as it is a value-type.
But that might be outside the scope of this project :)