markjprice / cs9dotnet5 Goto Github PK
View Code? Open in Web Editor NEWRepository for the Packt Publishing book titled "C# 9 and .NET 5 - Modern Cross-Platform Development" by Mark J. Price
Repository for the Packt Publishing book titled "C# 9 and .NET 5 - Modern Cross-Platform Development" by Mark J. Price
Topic: Positional Records.
There seems to be a difference, possibly a typo in Records.cs within the book.
"data class" was used as a keyword instead of "record"
The Fibonacci sequence at the bottom of page 120 ends with "21 34 65" instead of "21 34 55". This is repeated in the first sentence of the next page where the next term is given as "34 + 65".
Just an FYI in case you reuse the factorial example. 0! = 1 not 0.
Thru out the book the syntax for writing substructures are mentioned in the convention
Whatever
{
some stuff
}
on 505 however this is broken as it uses
Supplier = new[] {
stuff..
}
not a critical issue but for consistency you might want to adjust this.
Not sure if the problem is a subtile security update in EF Core as ive tried it using both the code on the git/book and latest EF Core also.
The Example on page 391 will return 0 rows as the expression
Fantastic book! I'm really enjoying it.
I entered the code on page 506 - Chapter 15 for the suppliers.cshtml file. The book shows the second line:
@model NorthwindWeb.Pages.SupplierModel
Autocomplete changes Pages to RazorPages.
@model NorthwindWeb.RazorPages.SupplierModel
The original code from the book will not run on my machine with "Pages". I have a slightly later version of .NET Core and VSCode than that used for the writing of the book.
Jeff
Hi @markjprice
Can you help me with this issue: dotnet/efcore#23660
I run the command, but there are no generated files.
What am I doing wrong?
Regards
Cloned and built NorthwindBlazorWasm and encountered this error
Don't mean to be pedantic but carriage-return should be replaced with "line terminator".
Especially considering that carriage-return doesn't put the cursor on a new line at all (that's line-feeds job for linux and CR+LF for windows)
Microsoft will release previews of .NET 6 regularly until the final version on Tuesday 9 November 2020.
I think you meant 2021 :)
Hello,
I've really enjoyed the book so far but as i am new to C# i can't seem to find a solution to exercise 15.3 and have struggled through some previous exercises.
Are there practical examples of the additional exercises anywhere?
I wrote my code in my own style different from yours style.
For example i wrote for
loop as:
for (int i = 0; i < 100; i++) {
// some...
}
But you wrote it as:
for (int i = 0; i < 100; i++)
{
// some...
}
Too many different:
I need some official coding style.
Many chapters of the book point out how to manually alter the csproj file to add references to packages or other projects.
However its never mentioned that you can utilize dotnet command lite to add these, and by doing so skipping the dotnet build step as the package is downloaded with the add package argument.
example
For Package references "dotnet add package Microsoft.EntitityFrameworkCore"
For Project reference "dotnet add reference ../NorthwindContextLib/NorthwindContextLib.csproj"
Hi,
When creating the Northwind sample database for SQLite with the .sql file (sqlite3 Northwind.db -init Northwind.sql), I get an error in Visual Studio:
-- Loading resources from Northwind.sql
Error: near line 7: near "<": syntax error
Error: near line 36367: near "<": syntax error
SQLite version 3.36.0 2021-06-18 18:36:39
Enter ".help" for usage hints.
sqlite>
I found a second script in the "cs9dotnet5/Chapter11/WorkingWithEFCore/" folder with remark "fix SQL script", but same thing...
Any idea what's happening?
Thanks and kind regards,
Björn
The tittle "Exploring console applications further" (Fsharp) does not contains a folder on the github repo.
Good evening,
on my system the option ".NET Core Launch (console Debugging)" is not available , as it is quoted on page 124.
Never the less it is possible to debug the project with the option ".NET Core Launch (console)".
Is it a configuration "problem" of the system?
The configuration: Windows 10 V20H2, .NET 5 Version 5.0.101, Omnisharp: 1.23.8, VS Code 1.52.1.
@markjprice
i'm beginner with sqllite , i follow the steps in the book ( ch11 - Working with EF )
when i try to init sqllite database it gave me this error
and when i tried to opened the database with Sqlite studio
the problem i notice when i opened the database file with notepad ++ i't look like this
i try to copy the statement from github to be like this
same error still appear
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.