Browse Source

translate to zh-Hans

pull/11264/head
Luke Ni 4 years ago
parent
commit
1f0207f7d0
  1. 8
      docs/en/Tutorials/Part-10.md
  2. 1211
      docs/zh-Hans/Tutorials/Part-10.md
  3. 2
      docs/zh-Hans/Tutorials/Part-2.md
  4. 4
      docs/zh-Hans/Tutorials/Part-3.md
  5. 2
      docs/zh-Hans/Tutorials/Part-4.md
  6. 2
      docs/zh-Hans/Tutorials/Part-5.md
  7. 2
      docs/zh-Hans/Tutorials/Part-6.md
  8. 4
      docs/zh-Hans/Tutorials/Part-8.md
  9. 2
      docs/zh-Hans/Tutorials/Part-9.md
  10. BIN
      docs/zh-Hans/Tutorials/images/blazor-bookstore-book-list-with-authors.png
  11. BIN
      docs/zh-Hans/Tutorials/images/book-create-modal-with-author.png
  12. BIN
      docs/zh-Hans/Tutorials/images/bookstore-angular-author-selection.png
  13. BIN
      docs/zh-Hans/Tutorials/images/bookstore-books-with-authorname-angular.png

8
docs/en/Tutorials/Part-10.md

@ -325,7 +325,7 @@ This new method will be used from the UI to get a list of authors and fill a dro
### BookAppService
Open the `BookAppService` interface in the `Books` folder of the `Acme.BookStore.Application` project and replace the file content with the following code:
Open the `BookAppService` class in the `Books` folder of the `Acme.BookStore.Application` project and replace the file content with the following code:
{{if DB=="EF"}}
@ -449,7 +449,7 @@ namespace Acme.BookStore.Books
{
return sorting.Replace(
"authorName",
"author.Name",
"author.Name",
StringComparison.OrdinalIgnoreCase
);
}
@ -533,7 +533,7 @@ namespace Acme.BookStore.Books
{
input.Sorting = nameof(Book.Name);
}
//Get the IQueryable<Book> from the repository
var queryable = await Repository.GetQueryableAsync();
@ -582,7 +582,7 @@ namespace Acme.BookStore.Books
.ToArray();
var queryable = await _authorRepository.GetQueryableAsync();
var authors = await AsyncExecuter.ToListAsync(
queryable.Where(a => authorIds.Contains(a.Id))
);

1211
docs/zh-Hans/Tutorials/Part-10.md

File diff suppressed because it is too large

2
docs/zh-Hans/Tutorials/Part-2.md

@ -16,7 +16,7 @@
本教程分为以下部分:
- [Part 1: 创建服务端](Part-1.md)
- **Part 2: 图书列表页面**(本章)
- **Part 2: 图书列表页面 (本章)**
- [Part 3: 创建,更新和删除图书](Part-3.md)
- [Part 4: 集成测试](Part-4.md)
- [Part 5: 授权](Part-5.md)

4
docs/zh-Hans/Tutorials/Part-3.md

@ -17,7 +17,7 @@
- [Part 1: 创建服务端](Part-1.md)
- [Part 2: 图书列表页面](Part-2.md)
- **Part 3: 创建,更新和删除图书**(本章)
- **Part 3: 创建,更新和删除图书 (本章)**
- [Part 4: 集成测试](Part-4.md)
- [Part 5: 授权](Part-5.md)
- [Part 6: 作者: 领域层](Part-6.md)
@ -1596,4 +1596,4 @@ namespace Acme.BookStore.Blazor
## 下一章
查看本教程的[下一章](Part-4.md).
查看本教程的[下一章](Part-4.md).

2
docs/zh-Hans/Tutorials/Part-4.md

@ -18,7 +18,7 @@
- [Part 1: 创建服务端](Part-1.md)
- [Part 2: 图书列表页面](Part-2.md)
- [Part 3: 创建,更新和删除图书](Part-3.md)
- **Part 4: 集成测试**(本章)
- **Part 4: 集成测试 (本章)**
- [Part 5: 授权](Part-5.md)
- [Part 6: 作者: 领域层](Part-6.md)
- [Part 7: 作者: 数据库集成](Part-7.md)

2
docs/zh-Hans/Tutorials/Part-5.md

@ -19,7 +19,7 @@
- [Part 2: 图书列表页面](Part-2.md)
- [Part 3: 创建,更新和删除图书](Part-2.md)
- [Part 4: 集成测试](Part-4.md)
- **Part 5: 授权**(本章)
- **Part 5: 授权 (本章)**
- [Part 6: 作者: 领域层](Part-6.md)
- [Part 7: 作者: 数据库集成](Part-7.md)
- [Part 8: 作者: 应用服务层](Part-8.md)

2
docs/zh-Hans/Tutorials/Part-6.md

@ -20,7 +20,7 @@
- [Part 3: 创建,更新和删除图书](Part-2.md)
- [Part 4: 集成测试](Part-4.md)
- [Part 5: 授权](Part-5.md)
- **Part 6: 作者: 领域层**(本章)
- **Part 6: 作者: 领域层 (本章)**
- [Part 7: 作者: 数据库集成](Part-7.md)
- [Part 8: 作者: 应用服务层](Part-8.md)
- [Part 9: 作者: 用户页面](Part-9.md)

4
docs/zh-Hans/Tutorials/Part-8.md

@ -22,7 +22,7 @@
- [Part 5: 授权](Part-5.md)
- [Part 6: 作者: 领域层](Part-6.md)
- [Part 7: 作者: 数据库集成](Part-7.md)
- [Part 8: 作者: 应用服务层](本章)
- **Part 8: 作者: 应用服务层 (本章)**
- [Part 9: 作者: 用户页面](Part-9.md)
- [Part 10: 图书到作者的关系](Part-10.md)
@ -391,7 +391,7 @@ authorsPermission.AddChild(
CreateMap<Author, AuthorDto>();
````
## 种子数据
## 数据种子
如同图书管理部分所做的, 在数据库中生成一些初始作者实体. 不仅当第一次运行应用程序时是有用的, 对自动化测试也是很有用的.

2
docs/zh-Hans/Tutorials/Part-9.md

@ -23,7 +23,7 @@
- [Part 6: 作者: 领域层](Part-6.md)
- [Part 7: 作者: 数据库集成](Part-7.md)
- [Part 8: 作者: 应用服务层](Part-8.md)
- [Part 9: 作者: 用户页面](本章)
- **Part 9: 作者: 用户页面 (本章)**
- [Part 10: 图书到作者的关系](Part-10.md)
## 下载源码

BIN
docs/zh-Hans/Tutorials/images/blazor-bookstore-book-list-with-authors.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
docs/zh-Hans/Tutorials/images/book-create-modal-with-author.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
docs/zh-Hans/Tutorials/images/bookstore-angular-author-selection.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
docs/zh-Hans/Tutorials/images/bookstore-books-with-authorname-angular.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Loading…
Cancel
Save