mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-02-21 22:44:27 +01:00
Add item for pages 586-7
This commit is contained in:
parent
f130e06095
commit
3f364dacf0
|
|
@ -4,6 +4,6 @@ If you find any mistakes in the seventh edition, *C# 11 and .NET 7 - Modern Cros
|
|||
|
||||
[**Errata** (34 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build.
|
||||
|
||||
[**Improvements** (21 items)](improvements.md): Changes to text or code that would improve the content. These are optional.
|
||||
[**Improvements** (22 items)](improvements.md): Changes to text or code that would improve the content. These are optional.
|
||||
|
||||
All errata and improvements will be included in the 8th edition planned for publishing in November 2023. To be included they must be submitted by mid-September 2023.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
**Improvements** (21 items)
|
||||
**Improvements** (22 items)
|
||||
|
||||
If you have suggestions for improvements, then please [raise an issue in this repository](https://github.com/markjprice/cs11dotnet7/issues) or email me at markjprice (at) gmail.com.
|
||||
|
||||
|
|
@ -20,6 +20,7 @@ If you have suggestions for improvements, then please [raise an issue in this re
|
|||
- [Page 547 - Creating a class library for a Northwind database context](#page-547---creating-a-class-library-for-a-northwind-database-context)
|
||||
- [Page 551 - Creating a class library for entity models using SQL Server](#page-551---creating-a-class-library-for-entity-models-using-sql-server)
|
||||
- [Page 573 - Adding code to a Razor Page](#page-573---adding-code-to-a-razor-page)
|
||||
- [Page 586 - Creating a Razor class library, Page 587 - Implementing a partial view to show a single employee](#page-586---creating-a-razor-class-library-page-587---implementing-a-partial-view-to-show-a-single-employee)
|
||||
- [Page 601 - Setting up an ASP.NET Core MVC website](#page-601---setting-up-an-aspnet-core-mvc-website)
|
||||
- [Page 654 - Making controller action methods asynchronous](#page-654---making-controller-action-methods-asynchronous)
|
||||
- [Page 655 - Exercise 14.2 – Practice implementing MVC by implementing a category detail page](#page-655---exercise-142--practice-implementing-mvc-by-implementing-a-category-detail-page)
|
||||
|
|
@ -512,6 +513,10 @@ In the next edition, I will add a warning, as shown in the following note:
|
|||
|
||||
> **Warning!** *Razor Pages* are different from *Razor Views* (used in ASP.NET Core MVC) but they share the same file extension `.cshtml`. When creating a *Razor View*, do NOT use the `@page` directive!
|
||||
|
||||
# Page 586 - Creating a Razor class library, Page 587 - Implementing a partial view to show a single employee
|
||||
|
||||
In these sections you create two files named `Employees.cshtml` and `_Employee.cshtml`. To make it clearer how they are related, what they do, and what their names mean, in the next edition, I will tell the reader to create the partial view that shows a single employee first and keep its name as `_Employee.cshtml`. Then I will tell the reader to create the Razor Page that uses that partial view but name it `EmployeesList.cshtml`.
|
||||
|
||||
# Page 601 - Setting up an ASP.NET Core MVC website
|
||||
|
||||
This section starts with a description of the three parts of MVC. For views, I wrote, "**Views**: Razor files, that is, `.cshtml` files, that render data in view models into HTML web pages. Blazor uses the `.razor` file extension, but do not confuse them with Razor files!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue