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 by Mark J. Price
An accessible guide for beginner-to-intermediate programmers to the concepts, real-world applications, and latest features of C# 12 and .NET 8, with hands-on exercises using Visual Studio 2022 and Visual Studio Code. Purchase of the print or Kindle book includes a free eBook in PDF format. Key Features 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 Book DescriptionUnlock the power of C# 12 and .NET 8 with this latest edition! You'll learn 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 filesystem, 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 updated edition integrates .NET 8 enhancements into its examples: type aliasing and primary constructors for concise and expressive code, and lambda expressions with parameter defaults for more flexible code. You'll make apps resilient with robust error handling through 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 allows web services to reach new heights. 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 code reusability. This Packt bestseller will give you a solid foundation to start building apps and services with confidence.What you will learn Discover the power of 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 Use the new HTTP Editor in Visual Studio 2022 for seamless web service testing Build rich web experiences using Blazor Full Stack, Razor Pages, the Model-View-Controller (MVC) pattern, and other ASP.NET Core features Integrate and update databases in your apps using Entity Framework Core models Build your own types with object-oriented programming Query and manipulate data using LINQ Build and consume powerful services using Web API and Minimal API Who this book is forThis 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, we recommend that you pick up Mark's other .NET book, Apps and Services with .NET 8, instead.