CdLian
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
docs/zh-Hans/Best-Practices/Entities.md
|
|
|
@ -64,7 +64,7 @@ public class Issue : FullAuditedAggregateRoot<Guid> //使用Guid作为键/标识 |
|
|
|
protected Issue() |
|
|
|
{ |
|
|
|
/* 此构造函数是提供给ORM用来从数据库中获取实体. |
|
|
|
* - 无需初始化Lanels集合 |
|
|
|
* - 无需初始化Labels集合 |
|
|
|
因为它会被来自数据库的值覆盖. |
|
|
|
- It's protected since proxying and deserialization tools |
|
|
|
可能不适用于私有构造函数. |
|
|
|
@ -150,4 +150,4 @@ public class IssueLabel : Entity |
|
|
|
### 参考文献 |
|
|
|
|
|
|
|
* Effective Aggregate Design by Vaughn Vernon |
|
|
|
http://dddcommunity.org/library/vernon_2011 |
|
|
|
http://dddcommunity.org/library/vernon_2011 |
|
|
|
|