ASP.NET Core 2.0 MVC & Razor Pages for Beginners: How to Build a Website

Jonas Fagerberg

  • 出版商: W. W. Norton
  • 出版日期: 2017-11-15
  • 售價: $1,900
  • 貴賓價: 9.5$1,805
  • 語言: 英文
  • 頁數: 528
  • 裝訂: Paperback
  • ISBN: 1979759952
  • ISBN-13: 9781979759953
  • 相關分類: .NETASP.NET
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Want to learn how to build ASP.NET Core 2.0 MVC and Razor Page Web Applications?
Prerequisites:
  • C# (Intermediate level; including Generics, Reflection and Object-Oriented Programming (OOP))
  • HTML5/CSS3 (Basic knowledge)

This book is primarily aimed at developers who want to learn how to build ASP.NET Core 2.0 MVC and Razor Page applications. You should be an intermediate level C# developer with some experience in HTML5 and CSS3. The C# language won't be explained in any detail.
You will learn ASP.NET Core 2.0 by building three applications. The first application will be built using an empty template, the second with the MVC template, and the third with Razor Pages. The goal with the first basic application is to get you familiar with ASP.NET Core 2.0 by adding middleware and services one piece at a time. Then you will create a solution with three projects; the first project will be used to create a shared database with Entity Framework Core 2.0, the second project is a MVC application for the regular user interface, and the third project is an administrator user interface built with Razor Pages. This solution is a video course website, where users can register to gain access to video courses and administrators can add and modify course content and users.
If you are already familiar with MVC 5 or ASP.NET Core 1.0/1.1, the content in this book can get you started with ASP.NET Core 2.0 in a fast, no-fluff way.
It’s important to mention that this book is practical and tactical, where you will learn as you progress through the modules and build real web applications in the process. To spare you countless pages of fluff (filler material), only valuable information, pertinent to the task at hand, is discussed. The benefit is a shorter and more condensed book, which will save you time and give you a more enjoyable experience.
This experience is something you can put in your CV when applying for a job or a consultant position, or when negotiating a higher salary.
Technologies, frameworks and languages you will use:
  • Visual Studio 2017
  • ASP.NET Core 2.0
  • MVC and Razor Pages (new in ASP.NET 2.0)
  • Services (To provide your own functionality as a reusable service)
  • Middleware (To provide you own functionality to HTTP Request pipeline)
  • Entity Framework (To crate and communicate with a database)
  • View Component (To render data in the _Layout view with model data)
  • Dependency Injection (To inject objects into constructors)
  • Bootstrap (Used for styling and to create a responsive design)
  • LINQ (To query the database)
  • Tag Helper (to clean up the HTML and enable re-use)
  • HTML Helper methods (to clean up your HTML and enable re-use)
  • Partial views (to clean up your views and enable re-use)
  • Bower and NuGet (To install necessary libraries)

  • What you will implement:
    • A web application from an empty template
    • An MVC web application using a template
    • An Razor Page web application using a template
    • A data-layer project referenced from the MVC and Razor Page applications

    I hope you love the book!
    Sincerely,
    Jonas Fagerberg
    Now click the Buy button and start reading the book.

商品描述(中文翻譯)

想要學習如何建立 ASP.NET Core 2.0 MVC 和 Razor Page 網頁應用程式嗎?

先備知識:
- C# (中級程度;包括泛型、反射和物件導向程式設計 (OOP))
- HTML5/CSS3 (基本知識)

這本書主要針對想要學習如何建立 ASP.NET Core 2.0 MVC 和 Razor Page 應用程式的開發人員。你應該是一位中級程度的 C# 開發人員,並且對 HTML5 和 CSS3 有一些經驗。C# 語言不會詳細解釋。

你將透過建立三個應用程式來學習 ASP.NET Core 2.0。第一個應用程式將使用空白範本建立,第二個使用 MVC 範本,第三個使用 Razor Pages。第一個基本應用程式的目標是讓你逐步熟悉 ASP.NET Core 2.0,一次添加一個中介軟體和服務。然後,你將建立一個包含三個專案的解決方案;第一個專案將用於使用 Entity Framework Core 2.0 建立共用資料庫,第二個專案是一個用於常規使用者介面的 MVC 應用程式,第三個專案是使用 Razor Pages 建立的管理員使用者介面。這個解決方案是一個影片課程網站,使用者可以註冊以獲取影片課程的存取權限,管理員可以添加和修改課程內容和使用者。

如果你已經熟悉 MVC 5 或 ASP.NET Core 1.0/1.1,這本書的內容可以讓你快速入門 ASP.NET Core 2.0,不浪費時間。

值得一提的是,這本書是實用和實戰性的,你將在進行模組並建立真實網頁應用程式的過程中學習。為了節省你閱讀冗長內容的時間,只討論與任務相關的有價值的資訊。這樣做的好處是書本更短、更緊湊,可以節省你的時間,讓你有更愉快的閱讀體驗。

這個經驗可以讓你在求職或談判薪水時加入你的履歷。

你將使用以下技術、框架和語言:
- Visual Studio 2017
- ASP.NET Core 2.0
- MVC 和 Razor Pages (在 ASP.NET 2.0 中新增)
- Services (提供自己的功能作為可重複使用的服務)
- Middleware (提供自己的功能給 HTTP 請求管線)
- Entity Framework (建立和與資料庫通訊)
- View Component (使用模型資料在 _Layout 視圖中呈現資料)
- Dependency Injection (將物件注入建構函式)
- Bootstrap (用於樣式和建立響應式設計)
- LINQ (查詢資料庫)
- Tag Helper (清理 HTML 並啟用重複使用)
- HTML Helper 方法 (清理 HTML 並啟用重複使用)
- Partial views (清理視圖並啟用重複使用)
- Bower 和 NuGet (安裝必要的函式庫)

你將實作以下內容:
- 從空白範本建立網頁應用程式
- 使用範本建立 MVC 網頁應用程式
- 使用範本建立 Razor Page 網頁應用程式
- 從 MVC 和 Razor Page 應用程式參考的資料層專案

希望你會喜歡這本書!

祝好,
Jonas Fagerberg

現在點擊購買按鈕,開始閱讀這本書吧!