Browse Source
Merge pull request #2220 from gdlcf88/fix-zhHans-docs
Add zh-Hans docs missing translations.
pull/2225/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
docs/zh-Hans/Best-Practices/Application-Services.md
-
docs/zh-Hans/Best-Practices/Entity-Framework-Core-Integration.md
|
|
@ -45,7 +45,7 @@ public class IssueLabelDto |
|
|
|
|
|
|
|
|
##### 详细DTO |
|
|
##### 详细DTO |
|
|
|
|
|
|
|
|
**Do** 如果实体持有对其他聚合根的引用,那么应该为其定义**详细**DTO. |
|
|
**推荐** 如果实体持有对其他聚合根的引用,那么应该为其定义**详细**DTO. |
|
|
|
|
|
|
|
|
* 直接包含实体中所有的 **原始属性**. |
|
|
* 直接包含实体中所有的 **原始属性**. |
|
|
- 例外-1: 出于**安全**原因,可以**排除**某些属性(像 `User.Password`). |
|
|
- 例外-1: 出于**安全**原因,可以**排除**某些属性(像 `User.Password`). |
|
|
|
|
|
@ -58,7 +58,7 @@ public static string Schema { get; set; } = AbpIdentityConsts.DefaultDbSchema; |
|
|
|
|
|
|
|
|
### Model Mapping |
|
|
### Model Mapping |
|
|
|
|
|
|
|
|
- **Do** 重写 `DbContext` 的 `OnModelCreating` 方法显式 **配置所有实体**. 例如: |
|
|
- **推荐** 重写 `DbContext` 的 `OnModelCreating` 方法显式 **配置所有实体**. 例如: |
|
|
|
|
|
|
|
|
````C# |
|
|
````C# |
|
|
protected override void OnModelCreating(ModelBuilder builder) |
|
|
protected override void OnModelCreating(ModelBuilder builder) |
|
|
|