Browse Source

Update Data-Transfer-Objects.md

Fix code syntax error
pull/10786/head
筱傑 5 years ago
committed by GitHub
parent
commit
16160aed5c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      docs/zh-Hans/Data-Transfer-Objects.md

5
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**.

Loading…
Cancel
Save