What is a practical way to model lookup tables in Domain Driven Design (DDD)?

前端 未结 5 2039
青春惊慌失措
青春惊慌失措 2021-01-30 07:02

I\'m just learning DDD (Eric Evans book is open in front of me) and I\'ve come across a problem that I can\'t find an answer for. What do you do in DDD when you\'re just trying

5条回答
  •  有刺的猬
    2021-01-30 07:32

    The state and county are not entities, but value objects. They are not the subject of your system. The way you said you treated these previously is OK. When will you change the state or county records in your database, based on the changes in the state of your domain model? Not, so these will not need a repository.

提交回复
热议问题