From 84168daa1e987f1b69fd6a22d9f9cfa391383d0d Mon Sep 17 00:00:00 2001
From: maliming <6908465+maliming@users.noreply.github.com>
Date: Wed, 8 Jul 2020 11:18:53 +0800
Subject: [PATCH 1/5] Update Part-5.md
---
docs/en/Tutorials/Part-5.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/en/Tutorials/Part-5.md b/docs/en/Tutorials/Part-5.md
index 441db14638..e49d53388a 100644
--- a/docs/en/Tutorials/Part-5.md
+++ b/docs/en/Tutorials/Part-5.md
@@ -366,7 +366,7 @@ Open the `/src/app/book/book.component.html` file and replace the create button
````
@@ -385,12 +385,12 @@ Open the `/src/app/book/book.component.html` file and replace the edit and delet
````html
````
From af6db568cc042b357f71c983cfb782840a66c237 Mon Sep 17 00:00:00 2001
From: maliming <6908465+maliming@users.noreply.github.com>
Date: Wed, 8 Jul 2020 11:33:05 +0800
Subject: [PATCH 2/5] Rename bookTypeArr to bookTypes.
---
docs/en/Tutorials/Part-3.md | 4 ++--
docs/pt-BR/Tutorials/Angular/Part-II.md | 8 ++++----
docs/zh-Hans/Tutorials/Part-2.md | 12 ++++++------
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/docs/en/Tutorials/Part-3.md b/docs/en/Tutorials/Part-3.md
index 275f1b9730..ef1f903c51 100644
--- a/docs/en/Tutorials/Part-3.md
+++ b/docs/en/Tutorials/Part-3.md
@@ -832,7 +832,7 @@ Open `/src/app/book/book.component.html` and replace ` Type *
@@ -921,7 +921,7 @@ export class BookComponent implements OnInit {
form: FormGroup;
- // <== added bookTypeArr array ==>
+ // <== added bookTypes array ==>
bookTypes = Object.keys(BookType).filter(
(bookType) => typeof this.booksType[bookType] === 'number'
);
diff --git a/docs/pt-BR/Tutorials/Angular/Part-II.md b/docs/pt-BR/Tutorials/Angular/Part-II.md
index 44c00e6370..b75fa9e21c 100644
--- a/docs/pt-BR/Tutorials/Angular/Part-II.md
+++ b/docs/pt-BR/Tutorials/Angular/Part-II.md
@@ -195,7 +195,7 @@ Abra `book-list.component.html`e adicione o formulário no modelo de corpo do mo
*
@@ -218,18 +218,18 @@ Abra `book-list.component.html`e adicione o formulário no modelo de corpo do mo
> Usamos o [datepicker do NgBootstrap](https://ng-bootstrap.github.io/#/components/datepicker/overview) neste componente.
-Abra o `book-list.component.ts`e crie uma matriz chamada `bookTypeArr`:
+Abra o `book-list.component.ts`e crie uma matriz chamada `bookTypes`:
```js
//...
form: FormGroup;
-bookTypeArr = Object.keys(Books.BookType).filter(
+bookTypes = Object.keys(Books.BookType).filter(
bookType => typeof this.booksType[bookType] === 'number'
);
```
-O `bookTypeArr`contém os campos da `BookType`enumeração. A matriz resultante é mostrada abaixo:
+O `bookTypes`contém os campos da `BookType`enumeração. A matriz resultante é mostrada abaixo:
```js
['Adventure', 'Biography', 'Dystopia', 'Fantastic' ...]
diff --git a/docs/zh-Hans/Tutorials/Part-2.md b/docs/zh-Hans/Tutorials/Part-2.md
index 5ddc8c2a66..751bd85ece 100644
--- a/docs/zh-Hans/Tutorials/Part-2.md
+++ b/docs/zh-Hans/Tutorials/Part-2.md
@@ -650,7 +650,7 @@ export class BookListComponent implements OnInit {
*
@@ -721,8 +721,8 @@ export class BookListComponent implements OnInit {
booksType = BookType;
- // <== added bookTypeArr array ==>
- bookTypeArr = Object.keys(BookType).filter(
+ // <== added bookTypes array ==>
+ bookTypes = Object.keys(BookType).filter(
(bookType) => typeof this.booksType[bookType] === 'number'
);
@@ -764,7 +764,7 @@ export class BookListComponent implements OnInit {
* 我们添加了一个新的 `NgbDateAdapter` 提供程序,它将Datepicker值转换为Date类型. 有关更多详细信息,请参见[datepicker adapters](https://ng-bootstrap.github.io/#/components/datepicker/overview).
-* 我们添加了 `bookTypeArr` 数组,以便能够在combobox值中使用它. `bookTypeArr` 包含 `BookType` 枚举的字段. 得到的数组如下所示:
+* 我们添加了 `bookTypes` 数组,以便能够在combobox值中使用它. `bookTypes` 包含 `BookType` 枚举的字段. 得到的数组如下所示:
```js
['Adventure', 'Biography', 'Dystopia', 'Fantastic' ...]
@@ -799,7 +799,7 @@ export class BookListComponent implements OnInit {
booksType = BookType;
- bookTypeArr = Object.keys(BookType).filter(
+ bookTypes = Object.keys(BookType).filter(
(bookType) => typeof this.booksType[bookType] === 'number'
);
@@ -904,7 +904,7 @@ export class BookListComponent implements OnInit {
booksType = BookType;
- bookTypeArr = Object.keys(BookType).filter(
+ bookTypes = Object.keys(BookType).filter(
(bookType) => typeof this.booksType[bookType] === 'number'
);
From c5a6caa13938cf8fe79de92626fd1dea944471af Mon Sep 17 00:00:00 2001
From: maliming <6908465+maliming@users.noreply.github.com>
Date: Wed, 8 Jul 2020 11:40:24 +0800
Subject: [PATCH 3/5] Update Part-5.md
---
docs/en/Tutorials/Part-5.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/en/Tutorials/Part-5.md b/docs/en/Tutorials/Part-5.md
index e49d53388a..5dd6a55e30 100644
--- a/docs/en/Tutorials/Part-5.md
+++ b/docs/en/Tutorials/Part-5.md
@@ -390,7 +390,7 @@ Open the `/src/app/book/book.component.html` file and replace the edit and delet
````
From 106683530c9f4160bee1523916522fe47e9e6dfd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?=
Date: Wed, 8 Jul 2020 17:43:04 +0300
Subject: [PATCH 4/5] Add BookStoreTestConsts.CollectionDefinitionName
---
docs/en/Tutorials/Part-4.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/docs/en/Tutorials/Part-4.md b/docs/en/Tutorials/Part-4.md
index 0325f3f60a..95fdacc69f 100644
--- a/docs/en/Tutorials/Part-4.md
+++ b/docs/en/Tutorials/Part-4.md
@@ -83,6 +83,9 @@ using Xunit;
namespace Acme.BookStore.Books
{
+{{if DB=="Mongo"}}
+ [Collection(BookStoreTestConsts.CollectionDefinitionName)]
+{{end}}
public class BookAppService_Tests : BookStoreApplicationTestBase
{
private readonly IBookAppService _bookAppService;
@@ -173,6 +176,9 @@ using Xunit;
namespace Acme.BookStore.Books
{
+{{if DB=="Mongo"}}
+ [Collection(BookStoreTestConsts.CollectionDefinitionName)]
+{{end}}
public class BookAppService_Tests : BookStoreApplicationTestBase
{
private readonly IBookAppService _bookAppService;
From 2778e023a4b87bed93399a0d949d2de9167d4458 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?=
Date: Wed, 8 Jul 2020 17:46:34 +0300
Subject: [PATCH 5/5] Update Part-4.md
---
docs/en/Tutorials/Part-4.md | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/docs/en/Tutorials/Part-4.md b/docs/en/Tutorials/Part-4.md
index 95fdacc69f..5e87d18653 100644
--- a/docs/en/Tutorials/Part-4.md
+++ b/docs/en/Tutorials/Part-4.md
@@ -82,10 +82,8 @@ using Volo.Abp.Application.Dtos;
using Xunit;
namespace Acme.BookStore.Books
-{
-{{if DB=="Mongo"}}
- [Collection(BookStoreTestConsts.CollectionDefinitionName)]
-{{end}}
+{ {{if DB=="Mongo"}}
+ [Collection(BookStoreTestConsts.CollectionDefinitionName)]{{end}}
public class BookAppService_Tests : BookStoreApplicationTestBase
{
private readonly IBookAppService _bookAppService;
@@ -175,10 +173,8 @@ using Volo.Abp.Validation;
using Xunit;
namespace Acme.BookStore.Books
-{
-{{if DB=="Mongo"}}
- [Collection(BookStoreTestConsts.CollectionDefinitionName)]
-{{end}}
+{ {{if DB=="Mongo"}}
+ [Collection(BookStoreTestConsts.CollectionDefinitionName)]{{end}}
public class BookAppService_Tests : BookStoreApplicationTestBase
{
private readonly IBookAppService _bookAppService;