Browse Source

Merge pull request #1050 from CdLian/patch-1

Update Entities.md
pull/1066/head
maliming 8 years ago
committed by GitHub
parent
commit
6c2f2370e3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      docs/zh-Hans/Best-Practices/Entities.md

4
docs/zh-Hans/Best-Practices/Entities.md

@ -64,7 +64,7 @@ public class Issue : FullAuditedAggregateRoot<Guid> //使用Guid作为键/标识
protected Issue() protected Issue()
{ {
/* 此构造函数是提供给ORM用来从数据库中获取实体. /* 此构造函数是提供给ORM用来从数据库中获取实体.
* - 无需初始化Lanels集合 * - 无需初始化Labels集合
因为它会被来自数据库的值覆盖. 因为它会被来自数据库的值覆盖.
- It's protected since proxying and deserialization tools - It's protected since proxying and deserialization tools
可能不适用于私有构造函数. 可能不适用于私有构造函数.
@ -150,4 +150,4 @@ public class IssueLabel : Entity
### 参考文献 ### 参考文献
* Effective Aggregate Design by Vaughn Vernon * Effective Aggregate Design by Vaughn Vernon
http://dddcommunity.org/library/vernon_2011 http://dddcommunity.org/library/vernon_2011

Loading…
Cancel
Save