C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals - Eighth Edition: Start building websites and services with ASP.NET Core 8, Blazor, and EF Core 8, 8/e (Paperback)

Price, Mark J.

  • 出版商: Packt Publishing
  • 出版日期: 2023-11-14
  • 售價: $1,930
  • 貴賓價: 9.5$1,834
  • 語言: 英文
  • 頁數: 826
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1837635870
  • ISBN-13: 9781837635870
  • 相關分類: .NETASP.NETC#
  • 立即出貨 (庫存=1)



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.


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 Description:


This Packt bestseller will give you a solid foundation to start building apps and services with confidence.


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 latest 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 handle errors robustly 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 lets web services 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.


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, the Model-View-Controller (MVC) pattern, 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


Who this book is 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.


一本適合初學者到中級程度的程式設計師的易於理解的指南,介紹C# 12和.NET 8的概念、實際應用和最新功能,並提供使用Visual Studio 2022和Visual Studio Code的實作練習。

- 探索C# 12的最新功能、.NET 8類庫和Entity Framework Core 8
- 使用ASP.NET Core 8和Blazor創建專業網站和服務
- 通過逐步代碼示例和最佳實踐提示來提高自信心


您將學習面向對象的編程、編寫、測試和調試函數,以及實現接口。您將使用.NET API來管理和查詢數據,處理文件系統和序列化。隨著學習的深入,您將探索可以構建和部署的跨平台項目示例,例如使用ASP.NET Core的網站和服務。

這本最新版本將.NET 8的增強功能融入到示例中:類型別名和主要構造函數用於簡潔和表達性代碼,帶有參數默認值的Lambda表達式用於更靈活的代碼。您將通過新的內置守衛條件健壯地處理錯誤,並探索ASP.NET Core 8中簡化的緩存實現。

如果這還不夠,您還將了解到本地預先編譯(AOT)編譯器發布如何讓Web服務達到新的高度。您將使用Visual Studio 2022中無縫的新HTTP編輯器來增強測試和調試過程。您甚至還將介紹具有無與倫比的代碼可重用性的Blazor全棧統一托管模型。

- 探索C# 12的新功能,包括任意類型的別名和主要構造函數
- 嘗試使用本地AOT發布功能來開發ASP.NET Core 8 Minimal APIs Web服務
- 使用Blazor全棧、Razor Pages、模型-視圖-控制器(MVC)模式和其他ASP.NET Core功能構建豐富的Web體驗
- 使用Entity Framework Core模型集成和更新應用程序中的數據庫
- 使用LINQ查詢和操作數據
- 使用Web API和Minimal API構建和使用強大的服務



如果您已經具備一些C#和.NET技能,並希望專注於開發實用的應用程序,您可以選擇Mark的另一本.NET書籍《使用.NET 8開發應用程序和服務》。