mirror of
https://github.com/dotnetcore/FreeSql.git
synced 2026-02-04 23:40:53 +08:00
update
2
聚合根.md
2
聚合根.md
@@ -291,6 +291,8 @@ InsertOrUpdate 执行逻辑依托聚合根对象的 `主键` 和 `状态管理`
|
||||
|
||||
应以业务为单位,为每个业务单独设计实体类,单一职责,隔离开发,这样才能更清淅的定义出聚合根实体。
|
||||
|
||||
如果觉得配置 \[Navigate\] 繁琐,可以使用 FreeSql 提供的默认约定命名方法,间化定义。
|
||||
|
||||
2、**理解边界**,理解本文提出的边界规则。
|
||||
|
||||
- ManyToOne 导航属性,是 `边界之外`;
|
||||
|
||||
Reference in New Issue
Block a user