Is using one-to-one interfaces with domain entities a good or bad practice? Why?

后端 未结 6 1136
梦谈多话
梦谈多话 2021-02-01 17:16

One thing I see in some DDD enterprise apps that I work on, is the use of interfaces that are identical to the domain entities, with a one-to-one mapping of properties and funct

6条回答
  •  鱼传尺愫
    2021-02-01 17:31

    One-to-One Interfaces on entities are an anti-pattern

    James Gregory put it better than me here.

提交回复
热议问题