Murach's ASP.NET Core MVC
暫譯: Murach 的 ASP.NET Core MVC

Murach, Joel, Delamater, Mary

商品描述

If you know the basics of C#, you're ready to learn how to create web applications using Microsoft's powerful technology, ASP.NET Core MVC (Model-View-Controller). And there's no more practical way to do it than with this book.

By the end of section 1...just 5 chapters...you'll be developing real-world web apps that follow the MVC pattern, using C# code for the model and controller classes...HTML, CSS, and Razor code for the user interface (the view)...and Bootstrap classes for responsive design so that your apps adapt well to all screen sizes. You'll also be able use the debugging tools in Visual Studio and your browser to test your apps thoroughly.

In section 2, you'll build out that set of skills to create more complex controllers, work with Razor views, handle cookies and sessions, do model binding, validate data, and handle database data with EF (Entity Framework) Core. You'll also see how all these skills come together in a single application, with coverage of the "gotchas" that can occur and how to solve them.

Finally, in section 3, you can pick up additional skills as you need them: use dependency injection to make your code easier to test; automate testing; create custom tag helpers and view components to reduce code duplication; control user access to a site with ASP.NET Core Identity; and use Visual Studio Code, an increasingly popular alternative to the Visual Studio IDE.

All along the way, you'll get complete web apps that show you how each feature works in context (you can download these apps for free from the Murach website). You'll get chapter exercises that let you practice your new skills. And you'll get Murach's distinctive "paired-pages" format that presents each skill in a 2-page spread, full of examples, notes, and explanation...a format that developers praise because it saves training and reference time.

商品描述(中文翻譯)

如果您了解 C# 的基本知識,那麼您已經準備好學習如何使用微軟強大的技術 ASP.NET Core MVC(模型-視圖-控制器)來創建網頁應用程式。而這本書是最實用的學習方式。

在第一部分結束時……僅僅 5 章……您將能夠開發遵循 MVC 模式的實際網頁應用程式,使用 C# 代碼來編寫模型和控制器類別……使用 HTML、CSS 和 Razor 代碼來構建用戶界面(視圖)……並使用 Bootstrap 類別來實現響應式設計,以便您的應用程式能夠適應各種螢幕尺寸。您還將能夠使用 Visual Studio 和瀏覽器中的除錯工具來徹底測試您的應用程式。

在第二部分中,您將擴展這些技能,以創建更複雜的控制器,使用 Razor 視圖,處理 cookies 和會話,進行模型綁定,驗證數據,並使用 EF(Entity Framework)Core 處理數據庫數據。您還將看到這些技能如何在單一應用程式中結合,並涵蓋可能出現的「陷阱」及其解決方法。

最後,在第三部分中,您可以根據需要學習額外的技能:使用依賴注入使您的代碼更易於測試;自動化測試;創建自定義標籤輔助工具和視圖組件以減少代碼重複;使用 ASP.NET Core Identity 控制用戶對網站的訪問;以及使用 Visual Studio Code,這是一個越來越受歡迎的 Visual Studio IDE 替代方案。

在整個過程中,您將獲得完整的網頁應用程式,展示每個功能在上下文中的運作方式(您可以從 Murach 網站免費下載這些應用程式)。您將獲得章節練習,讓您練習新技能。您還將體驗到 Murach 獨特的「配對頁面」格式,該格式在兩頁的展開中呈現每項技能,充滿示例、註解和解釋……這種格式受到開發人員的讚譽,因為它節省了培訓和參考的時間。