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.
A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content
How can I cancel my subscription?
To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.
What are credits?
Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.
What happens if an Early Access Course is cancelled?
Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.
Where can I send feedback about an Early Access title?
If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team.
Can I download the code files for Early Access titles?
We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.
When we publish the book, the code files will also be available to download from the Packt website.
How accurate is the publication date?
The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.
How will I know when new chapters are ready?
We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.
I am a Packt subscriber, do I get Early Access?
Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.
How is Early Access delivered?
Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.
How do I buy Early Access content?
Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.
What is Early Access?
Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.