Comments (3)
None of the steps on page 723 need to import the Packt.Shared
namespace because you are not using the entity models yet. The error message you see is probably because either you named the Customers.razor
file something different so it cannot find it when it looks for Customers
, or you created it in a folder other than Pages
so it's not found by default.
from cs11dotnet7.
I did correctly name the Customers.razor file and it was created in the Pages folder, and I will have to concede that importing the Packt.Shared namespace was not necessary at that time. It still doesn't explain why the statements added in step 3, page 723, show up in the Visual Studio editor underlined with a green squiggle which lists the warning with the text supplied quoted in the heading to this issue I raised. I've now got as far as page 735 in the book and the warning squiggles still show on those lines added to the Index.razor file in step 3. So why the text "Customers in Germany/Customers Worldwide" didn't appear until after I'd made the adjustment is still unclear to me.
I find that there are many things that I still do not understand, and have to take on trust. Templates on creating files can be sometimes contain significant differences from the code presented in the book without any covering explanation. And sometimes making a link between the result and a statement of code which brings about that result is not always obvious -- unless perhaps you are well versed in the underlying software which is hidden from view.
I now feel wary about raising another issue, but I wonder why in Task Update (0n page 733) there is no statement : navigation.NavigateTo("customers"); as in the New and Delete functions to return to the /customers page. Without it, you get stuck on the page with an Update button that doesn't do anything any more, and the only way out is via the web browser's uri box.
from cs11dotnet7.
Yes, I agree it's unclear to me as well as to why you got that warning message. It doesn't make sense to me.
FYI, there is already an errata item for the issue on page 733 here:
https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-733---building-customer-create-edit-and-delete-components
from cs11dotnet7.
Related Issues (20)
- Packt.Shared library not used for using Product type HOT 1
- Chapter 12: Creating a class library for entity models using SQLite' help needed. HOT 4
- Page 244 init-only properties HOT 1
- .Net standard is legacy but is still used? HOT 3
- Fix to the newer versions of Microsoft.Configuration.Extensions HOT 1
- Exercise 15.2 HOT 6
- No OmniSharp: Select Project HOT 5
- "Value" setting is also needed in appsettings.json, Chapter 04 switch trace levels HOT 5
- Exception when logging source code - chapter 4 HOT 1
- No instructions on how to create a unit test app HOT 5
- How GAC lead to issue if an app needs a specific version ? HOT 2
- Pattern Matching with Regular Expressions HOT 1
- Refactoring the query cause an exception HOT 4
- Addin `Model` into the Razor page cause error HOT 5
- Page 59 6th paragraph
- Page 149 HOT 2
- Exercise Solutions - Where are they? HOT 1
- Relational pattern + property pattern example missing decimal literal value suffix "M" HOT 1
- Sentence out of place in chapter 7 HOT 1
- Scaffolding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs11dotnet7.