diff --git a/docs/en/Tutorials/Part-10.md b/docs/en/Tutorials/Part-10.md index 3fc2e153bf..ef8129d23b 100644 --- a/docs/en/Tutorials/Part-10.md +++ b/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(); CreateMap(); ``` +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...* diff --git a/docs/en/Tutorials/Part-7.md b/docs/en/Tutorials/Part-7.md index dcfe2453ad..30df597c0a 100644 --- a/docs/en/Tutorials/Part-7.md +++ b/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}} diff --git a/docs/en/Tutorials/images/bookstore-added-author-to-book-list.png b/docs/en/Tutorials/images/bookstore-added-author-to-book-list.png new file mode 100644 index 0000000000..f318ddfd31 Binary files /dev/null and b/docs/en/Tutorials/images/bookstore-added-author-to-book-list.png differ diff --git a/docs/en/Tutorials/images/bookstore-added-authors-to-modals.png b/docs/en/Tutorials/images/bookstore-added-authors-to-modals.png new file mode 100644 index 0000000000..5fe4046794 Binary files /dev/null and b/docs/en/Tutorials/images/bookstore-added-authors-to-modals.png differ