I utilize DDD in my project.
ProductCat[Id , Name]
Product[Id, ProductCatId, name]
ProductImages[Id,ProductId,url]
- My Relationship between
Product
andProductImages
is correct ORProductImages
is Value Object so must implement in thisProductImages
[ProductId, url] - What's aggregate root among
ProductCat
,Product
,ProductImages
?
I know all reference from external of an aggregation to this must be from aggregate root and think ProductCat
is aggregate root because it's in a higher level in the hierarchy.