Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Jonas Fagerberg

Rating No ratings yet

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. Technologie

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on, no-fluff guide that teaches ASP.NET Core 2.0 by having you build three real web applications from scratch, culminating in a multi-project video-course site with a public MVC interface and a Razor Pages admin panel. Best for intermediate C# developers who know some HTML/CSS and want practical, job-relevant web-building skills fast. 【Book Arc】 - **Opening (~0%–10%)**: Sets expectations and prerequisites, then walks the project layout, file system, and `Startup.cs` — showing how to wire up configuration and register your first custom service. - **Early (~10%–30%)**: Builds the fundamentals of the request pipeline: middleware, exception handling, static files, MVC setup, controllers, routing (convention-based and attribute), actions, and an introduction to models and views. - **Early–Middle (~30%–40%)**: Introduces data persistence with Entity Framework Core 2.0 — the `DbContext`, migrations, database creation, and a SQL-backed data service — plus Razor views, layouts, tag helpers, partial views, and view components. - **Middle (~40%–55%)**: Moves into authentication and the second application: ASP.NET Identity configuration, registration, login/logout, and the start of the multi-project video-course solution with AutoMapper, DTOs, entities, and a mock repository. - **Late (~55%–75%)**: Builds the user-facing MVC application — membership controller, dashboard, course and video views, partials, and styling — connecting controllers to views through DTOs and view models. - **Ending (~75%–100%)**: Completes the solution with the Razor Pages administrator interface (index, create, edit, delete pages) for managing courses and users, tying the whole system together. 【Key Takeaways】 - **Services and dependency injection are the backbone of ASP.NET Core** (Opening): you register interfaces and implementations in `Startup.cs`, then consume them via constructor injection — the pattern repeats throughout the book. - **Middleware composes the request pipeline** (Early): understanding `IApplicationBuilder`, exception handling, and static-file serving is prerequisite to everything that follows. - **Routing and controllers define how URLs map to logic** (Early): both convention-based and attribute routing are covered, with `IActionResult` return types and model binding. - **Entity Framework Core handles persistence** (Early–Middle): the book walks through `DbContext`, migrations, and a data service abstraction rather than raw SQL. - **Razor views, layouts, tag helpers, partials, and view components** (Early–Middle) form the presentation toolkit for MVC, with `_Layout`, `_ViewStart`, and `_ViewImports` as the scaffolding files. - **Authentication via ASP.NET Identity** (Middle): registration, login/logout, and authorization attributes are implemented end-to-end. - **DTOs and view models decouple entities from the UI** (Middle): AutoMapper bridges them, keeping controllers and views clean. - **Razor Pages suit admin CRUD interfaces** (Ending): the administrator dashboard uses page-based index/create/edit/delete patterns, contrasting with MVC for the public site. 【Reading Tips】 - **Skim the table-of-contents-heavy opening** if you already know ASP.NET Core basics; the real value starts with middleware and services. - **Deep-read the Entity Framework and Identity chapters** — these are the hardest and most transferable parts; expect to re-read migration and configuration steps. - **Type the code, don't just read it**: the book is explicitly tactical, and the three-app progression only pays off if you build along. - **Use the first (empty-template) app to internalize DI and middleware** before the multi-project solution, where complexity jumps. - **Treat the Razor Pages admin section as a template** you can adapt to any CRUD back office. 【Coverage Limits】 This guide is based on stratified excerpts (front matter, table of contents, and chapter headings); specific code samples, exact API signatures, and detailed explanations within chapters are not fully represented. Percentages are approximate and derived from position markers.
Excerpt 1
ill 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 posit...
View in text
Page 2
84 Summary ........................................................................................................................ 87 5. Entity Framework .....
View in text
Page 7
....................................................................................... 197 Introduction .......................................................
View in text
Page 9
249 Technologies Used in This Chapter.......................................................................... 249 Overview ...................................
View in text
Page 2
.......................... 339 Introduction ....................................................................................................................
View in text
Page 14
The Delete Method.................................................................................................. 412 The Update Method ......................
View in text
Page 17
............................................................ 496 The Modules Razor Pages .......................................................................
View in text
Page 20
Studio 2017 version 15.3.5 or later that you have access to. You can even use Visual Studio Community 2017, which you can download for free from www.visualst...
View in text
Tags
AI categories
Programming LanguageBackendWeb Technology
ISBN: 1979759952
Publish Year: 2017
Language: English
Pages: 528
File Format: PDF
File Size: 11.0 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…