diff --git a/docs/errata/README.md b/docs/errata/README.md index 0be28d8..9f37972 100644 --- a/docs/errata/README.md +++ b/docs/errata/README.md @@ -2,7 +2,7 @@ If you find any mistakes in the seventh edition, *C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals*, or 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. -[**Errata** (10 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build. +[**Errata** (11 items)](errata.md): Typos, tool user interface changes, or mistakes in code that would cause a compilation error that prevents a successful build. [**Improvements** (1 item)](improvements.md): Changes to text or code that would improve the content. These are optional. diff --git a/docs/errata/errata.md b/docs/errata/errata.md index 53b4d2b..4dc8f38 100644 --- a/docs/errata/errata.md +++ b/docs/errata/errata.md @@ -1,4 +1,4 @@ -**Errata** (10 items) +**Errata** (11 items) If you find any mistakes, then please [raise an issue in this repository](https://github.com/markjprice/cs11dotnet7/issues) or email me at markjprice (at) gmail.com. @@ -15,6 +15,7 @@ If you find any mistakes, then please [raise an issue in this repository](https: - [Page 244 - Init-only properties](#page-244---init-only-properties) - [Page 322 - Revealing the location of a type](#page-322---revealing-the-location-of-a-type) - [Page 412 - Compressing streams](#page-412---compressing-streams) + - [Page 477 - Inserting entities](#page-477---inserting-entities) # Page 4, 8 - Pros and cons of the .NET Interactive Notebooks extension, Downloading and installing Visual Studio Code @@ -143,3 +144,16 @@ It should be: ```cs WriteLine("The compressed contents:"); ``` + +## Page 477 - Inserting entities + +> Thanks to [Chadwick Geyser](https://github.com/chadwickgeyser) for raising this [issue on 29 November 2022](https://github.com/markjprice/cs11dotnet7/issues/5). + +In Step 4, the code statement to list the products uses an older version of the method signature that I removed before publishing that only allows a single `productId` to be highlighted, as shown in the following code: +```cs +ListProducts(productIdToHighlight: resultAdd.productId); +``` +It should use the method signature that allows multiple `productIds` to be highlighted, as shown in the following code: +```cs +ListProducts(productIdsToHighlight: new[] { resultAdd.productId }); +```