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

前端 未结 5 2044
青春惊慌失措
青春惊慌失措 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条回答
  •  -上瘾入骨i
    2021-01-30 07:29

    You may want to look into the concept of Command Query Separation. I wouldn't worry about typed repositories for lookup values, but I'd still probably use DTO type classes over datasets etc...

    You may want to spend some time reading Greg Young's blogs starting from this one to the present. He doesn't talk about filling lookup data specifically but he often talks about not handling the reading/reporting functionality of your application through typed methods on a repository.

提交回复
热议问题