C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8
, Eighth Edition
Explore the latest additions to C# 12, the .NET 8 class libraries, and Entity Framework Core 8
Create professional websites and services with ASP.NET Core 8 and Blazor
Build your confidence with step-by-step code examples and tips for best practices
Description
This latest edition of the bestselling Packt series will give you a solid foundation to start building projects using modern C# and .NET with confidence.
You'll learn about object-oriented programming; writing, testing, and debugging functions; and implementing interfaces. You'll take on .NET APIs for managing and querying data, working with the fi lesystem, and serialization. As you progress, you'll explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core.
This latest edition integrates .NET 8 enhancements into its examples: type aliasing and primary constructors for concise and expressive code. You'll handle errors robustly through the new built-in guard clauses and explore a simplified implementation of caching in ASP.NET Core 8.
If that's not enough, you'll also see how native ahead-of-time (AOT) compiler publish lets web services reduce memory use and run faster. You'll work with the seamless new HTTP editor in Visual Studio 2022 to enhance the testing and debugging process. You'll even get introduced to Blazor Full Stack with its new unified hosting model for unparalleled web development flexibility.
Who is this book for?
This book is for beginners as well as intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the last few years.
Prior exposure to C# or .NET is not a prerequisite. A general understanding of programming will help you to work through the book more comfortably, though the content is suitable for those completely new to programming.
If you already have some C# and .NET skills and want to focus on developing practical apps, you can pick up Mark’s other .NET book, Apps and Services with .NET 8, instead.
What you will learn
Discover C# 12's new features, including aliasing any type and primary constructors
Try out the native AOT publish capability for ASP.NET Core 8 Minimal APIs web services
Build rich web experiences using Blazor Full Stack, Razor Pages, and other ASP.NET Core features
Integrate and update databases in your apps using Entity Framework Core models
Query and manipulate data using LINQ
Build and consume powerful services using Web API and Minimal API
This is a good resource for learning how to get websites to work in blazor if your sites are running on .Net Framework.
Amazon Verified review
Suraj SakhareOct 22, 2024
4
I'm beginner of .net so for me content is really good, But books binding is really Bad after 2,3 days of usage pages of book are coming out..Very Bad Binding Applying For Return
Amazon Verified review
Amazon CustomerOct 09, 2024
3
I'm not sure who the intended audience of this book is or who could benefit from reading it. I bought this because I thought I needed it before reading the next book in this series, which is what I really wanted to get to. But after having read it, I doubt I'll bother buying anything from this author again.It wasn't terrible. Or at least, it could have been worse. I did learn a thing or two from it although I expected to learn more. I have been programming in C# for many years and needed something to update my C# knowledge and get more into web development.The first half of the book seems targeted at me perhaps, meaning that it goes over a lot of beginner stuff and specifically newer features in C#, but breezes over all topics so fast that it's not really doing an adequate job explaining most things if you don't already kind of know them. It's DEFINITELY not a beginner book for C#. It's NOT a book for someone who has never programmed before.It's not too bad if you follow along with the examples in the book and can already program in C# or at least have read one beginner book to learn C# before this.In the second half you build a sample application that I think is an extremely bad approach to database software design. I have decades of experience as a Database Administrator and I'll leave it at just saying that this is the wrong way to approach relational database software. But it's such a monolithic example that I didn't get a whole lot out of it, and felt it was more a demo of MVC rather than a teaching aide to learn MVC.So, ultimately, it's going to go over the head of most absolute beginners, and didn't go in depth enough with MVC and such in the later half of the book.I gave it 3 stars as I did learn a little from it, especially in terms of getting exposed to some of the newer features of .Net 8. But for the most part I regret buying the book as I felt that I should have been able to find a better book to learn .Net web programming.
Amazon Verified review
WiredUpSep 13, 2024
1
This book is all over the place, informationally. Filler content prevails, unfortunately, with long tables and over emphasis on frivolous explanations-history of .net, for example.While this book has “glowing reviews” I suggest you examine them through a review analysis site…I’ll leave it at that, since my previous review was mysteriously filtered.
Amazon Verified review
RossSep 07, 2024
2
I found it highly annoying that the Web API hinges on you doing the Razor Pages chapter first. Not worth the $50 I paid months ago.
Mark J. Price is a Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with over 20 years' experience. Since 1993, he has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them. Between 2001 and 2003, Mark was employed to write official courseware for Microsoft in Redmond, USA. His team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft, he taught "train-the-trainer" classes to get other MCTs up-to-speed on C# and .NET. Mark holds a Computer Science BSc. Hons. Degree.
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.