Browse Source

Added scrennshots and notes.

pull/4864/head
Halil İbrahim Kalkan 6 years ago
parent
commit
333e31e1cb
  1. 10
      docs/en/Tutorials/Part-10.md
  2. 4
      docs/en/Tutorials/Part-7.md
  3. BIN
      docs/en/Tutorials/images/bookstore-added-author-to-book-list.png
  4. BIN
      docs/en/Tutorials/images/bookstore-added-authors-to-modals.png

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

@ -64,7 +64,7 @@ Open the `Books/Book.cs` in the `Acme.BookStore.Domain` project and add the foll
public Guid AuthorId { get; set; }
````
## Database Migration
## Database & Data Migration
Added a new, required `AuthorId` property to the `Book` entity. But, what about the existing books on the database? They currently don't have `AuthorId`s and this will be a problem when we try to run the application.
@ -572,6 +572,10 @@ Book list page change is trivial. Open the `Pages/Books/Index.js` in the `Acme.B
...
````
When you run the application, you can see the *Author* column on the table:
![bookstore-added-author-to-book-list](images/bookstore-added-author-to-book-list.png)
### Create Modal
Open the `Pages/Books/CreateModal.cshtml.cs` in the `Acme.BookStore.Web` project and change the file content as shown below:
@ -770,6 +774,10 @@ CreateMap<BookDto, Pages.Books.EditModalModel.EditBookViewModel>();
CreateMap<Pages.Books.EditModalModel.EditBookViewModel, CreateUpdateBookDto>();
```
You can run the application and try to create a new book or update an existing book. You will see a drop down list on the create/update form to select the author of the book:
![bookstore-added-authors-to-modals](images/bookstore-added-authors-to-modals.png)
{{else if UI=="NG"}}
*TODO: Preparing for the Angular UI...*

4
docs/en/Tutorials/Part-7.md

@ -98,7 +98,7 @@ This will create a new migration class. Then run the `Update-Database` command t
{{else if DB=="Mongo"}}
TODO, for MongoDB
*TODO: MongoDB part is being prepared...*
{{end}}
@ -162,7 +162,7 @@ namespace Acme.BookStore.Authors
{{else if DB=="Mongo"}}
TODO, for MongoDB
*TODO: MongoDB part is being prepared...*
{{end}}

BIN
docs/en/Tutorials/images/bookstore-added-author-to-book-list.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
docs/en/Tutorials/images/bookstore-added-authors-to-modals.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Loading…
Cancel
Save