Skip to content

DDD贫血模型和充血模型 | probie's blog #39

Description

@probieLuo

https://probieluo.github.io/posts/ddd-concepts-01/

贫血模型是指一个类中只有属性或成员变量,没有方法,而充血模型指一个类中既有属性、成员变量,也有方法,这是 DDD 推荐的设计方式。 贫血模型示例代码: 12345678910111213141516171819202122// 贫血模型的实体类public class Order{ public Guid Id { get; set; } public d

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions