Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/volosoft/abp
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Apr 14, 2019
2 parents d4dca04 + 5614f1b commit 51f41b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/zh-Hans/Best-Practices/Application-Services.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ Task<int> VoteAsync(Guid id, VoteType type);
#### 操作/删除 实体

* **推荐** 总是从数据库中获取所有的相关实体以对他们执行操作.
* **推荐** 更新实体后调用存储的Update/UpdateAsync方法.因为并非所有数据库API都支持更改跟踪和自动更新.

#### 使用其他应用服务

* **不推荐** 使用相同 **模块/应用程序** 的其他应用服务. 相反;
* 使用领域层执行所需的任务.
* 提取新类并在应用程序服务之间共享, 在必要时代码重用.
* 提取新类并在应用程序服务之间共享, 在必要时代码重用. 但要小心不要结合两个用例. 它们在开始时可能看起来相似, 但可能会随时间演变为不同的方向. 请谨慎使用代码共享.
* **可以** 在以下情况下使用其他应用服务;
* 它们是另一个模块/微服务的一部分.
* 当前模块仅引用已使用模块的application contracts.

0 comments on commit 51f41b7

Please sign in to comment.