Browse Source
Update Data-Transfer-Objects.md
Fix code syntax error
pull/10786/head
筱傑
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
docs/zh-Hans/Data-Transfer-Objects.md
|
|
|
@ -218,7 +218,8 @@ namespace AbpDemo |
|
|
|
//Get entities from the repository |
|
|
|
List<Product> products = await query |
|
|
|
.Skip(input.SkipCount) |
|
|
|
.Take(input.MaxResultCount);.ToListAsync(); |
|
|
|
.Take(input.MaxResultCount) |
|
|
|
.ToListAsync(); |
|
|
|
|
|
|
|
//Map entities to DTOs |
|
|
|
List<ProductDto> productDtos = |
|
|
|
@ -277,4 +278,4 @@ var query = _productRepository |
|
|
|
|
|
|
|
### 输出DTO原则 |
|
|
|
|
|
|
|
* 如果在所有情况下填充**所有属性**,就可以**重用输出DTO**. |
|
|
|
* 如果在所有情况下填充**所有属性**,就可以**重用输出DTO**. |
|
|
|
|