@ -45,7 +45,7 @@ public class IssueLabelDto
##### 详细DTO
**Do** 如果实体持有对其他聚合根的引用,那么应该为其定义**详细**DTO.
**推荐** 如果实体持有对其他聚合根的引用,那么应该为其定义**详细**DTO.
* 直接包含实体中所有的 **原始属性**.
- 例外-1: 出于**安全**原因,可以**排除**某些属性(像 `User.Password`).
@ -58,7 +58,7 @@ public static string Schema { get; set; } = AbpIdentityConsts.DefaultDbSchema;
### Model Mapping
- **Do** 重写 `DbContext` 的 `OnModelCreating` 方法显式 **配置所有实体**. 例如:
- **推荐** 重写 `DbContext` 的 `OnModelCreating` 方法显式 **配置所有实体**. 例如:
````C#
protected override void OnModelCreating(ModelBuilder builder)