ASP.NET Core Razor Pages - The Complete Guide (.NET 6)

Video description

This is an intermediate to advanced ASP.NET Core (.NET 6) with Razor Pages course that will take you from the beginning to the end. This course is for anyone who has a basic understanding of ASP.NET Core and wants to learn how to architect and build real-world ASP.NET Core apps (.NET 6).

You have come to the right place if you want to understand the Repository Pattern and N-Tier architecture in record time with ASP.NET Core (.NET 6)! There is no filler content in this course; only straight, accurate, and brief explanations of how to construct excellent ASP.NET Core applications.

In this course, we will develop a Taste Restaurant website with advanced features, such as allowing consumers to see meal products, add them to the basket, and place orders using a credit card. Admin may see the order and begin preparing it, as well as track the orders from start to finish, with the option of canceling or issuing refunds!

By the end of this course, you will learn how to use ASP.NET Core Razor Pages to build and develop a real-world project.

What You Will Learn

  • Learn about repository patterns and N-Tier architecture
  • Learn how to add Stripe payments and refunds
  • Integrate Identity Framework and learn how to add more fields to Users
  • Integrate Entity Framework along with code first migrations
  • Authentication and authorization in ASP.NET Core (.NET 6)
  • Data seeding and deployment to Azure

Audience

This course is for anyone interested in learning ASP.NET Core (.NET 6) or the most recent changes to Microsoft’s latest framework. To do so, you will need to be familiar with C# and be able to use Visual Studio 2022 and SQL Server Management Studio 2018.

About The Author

Bhrugen Patel: Bhrugen Patel is a passionate and creative software engineer with a strong focus on simplicity and thorough details. He has been programming since high school and was involved with multiple web and desktop projects using .NET. He has a master’s degree in computer science and a bachelor’s degree in computer engineering. He also has many years of experience with .NET C# and .NET MVC. He enjoys teaching alongside his full-time job.

Table of contents

  1. Chapter 1 : Introduction
    1. Welcome
    2. Live Preview Abby
    3. Tools Needed
    4. Introduction to .NET Core
    5. Dependency Injection
    6. Create Project
    7. Hot Reload
    8. Razor Pages Introduction
    9. Project file _razor
    10. Launchsettings, wwwroot, and appsettings_razor
    11. Programcs_razor
    12. Routing overview_razor
    13. Default Views_razor
    14. Tag Helper
    15. Action Result
  2. Chapter 2 : Database Setup
    1. .NET 6 Updates - Nullable
    2. Create Category Model
    3. Data Annotations
    4. Connection String
    5. ApplicationDbContext
    6. Program.cs Database Settings
    7. Create Database
  3. Chapter 3 : CRUD - Razor Pages
    1. Categories Get Action Method
    2. Display All Categories
    3. Add Create Category Button
    4. Create Category UI
    5. Create Property in Page Model
    6. Create Category and Bind Property
    7. Bootswatch
    8. Server-Side Validations
    9. Custom Validations
    10. Display Name and Range Annotation
    11. Client-Side Validations
    12. Links for Edit and Delete
    13. Edit Category
    14. Back to List
    15. Delete Category
    16. TempData
    17. Toastr
    18. Partial Views
    19. Scaffold CRUD Pages
  4. Chapter 4 : N-Tier Architecture
    1. Add More Projects to the Solution
    2. Moving Data and Model Files
    3. N-Tier Architecture
    4. Organize Admin and Customer Pages
    5. Dropdown in Navbar
    6. Assignment 1
    7. Assignment 1 - Food Type Solution
  5. Chapter 5 : Repository Pattern
    1. Create IRepository
    2. Implement Repository
    3. Implement Category Repository
    4. Register Category Repository to Container
    5. Use Category Repository for Operations
    6. Unit of Work Implementation
    7. Demo - Unit of Work
    8. Assignment 2 - Food Type and Unit of Work
    9. Assignment 2 Solution - Food Type and Unit of Work
  6. Chapter 6 : Menu Item Management
    1. Create MenuItem Model
    2. Create MenuItem Table
    3. Add MenuItem to UnitOfWork
    4. MenuItem Index Page
    5. Menu Item Upsert Page Get Handler
    6. Menu Item Upsert Page Get Hander UI
    7. Rich Text Editor
    8. Menu Item Create Post Handler
    9. Create API in Razor Project
    10. Include Properties
    11. Include DataTable in Project
    12. Load Datatables
    13. DataTable Render Buttons
    14. Menu Item Edit Get Handler
    15. Menu Item Edit POST Handler
    16. Implement Http Delete for Menu Item
    17. Delete Menu Item Alerts
  7. Chapter 7 : Home Page
    1. Home Page Get Handler
    2. Display Home Page
    3. Add More Functionality to the Repository
    4. Details Page
    5. How to Manage Users.
  8. Chapter 8 : Identity Management
    1. Scaffold Identity
    2. Register First User
    3. Extend Identity User
    4. Create Application User
    5. Assign Roles When Registering New User
    6. Create Users with Different Roles
  9. Chapter 9 : Shopping Cart
    1. Add Shopping Cart Model
    2. Add Shopping Cart to Repository
    3. Add Shopping Cart on Details Page
    4. Authorization in .NET Core
    5. Add to Shopping Cart
    6. Increment Shopping Cart
    7. Shopping Cart Get Handler
    8. Load Shopping Cart
    9. Navigation Property Issues
    10. Order Total and Routing
    11. Increment Count from the Shopping Cart
    12. Assignment 3 - Remove and Decrement Shopping Cart Items
    13. Assignment 3 Solution - Remove and Decrement Shopping Cart Items
    14. Cart Summary UI
  10. Chapter 10 : Order Submission
    1. Order Header Model
    2. Order Details Model
    3. Assignment 4 - Order Header and Details Repository
    4. Assignment 4 Solution - Order Header and Details Repository
    5. Load Summary Get Handler Data
    6. Summary UI Changes
    7. Summary Validations
    8. Add Order Header to Database
    9. Create Order Header and Detail
    10. Cleanup
  11. Chapter 11 : Stripe Payments
    1. Create Stripe Account
    2. Configure Stripe Secrets
    3. Add Stripe in Page Model
    4. Stripe in Action
    5. Adding Session ID
    6. Organize Stripe Checkout Page
    7. Stripe Final Demo
    8. Order Confirmation in Action
  12. Chapter 12 : Order Management
    1. Overview
    2. Assignment 5 - Order List with Datatables
    3. Assignment 5 Solution - Order List with Datatables
    4. Order Details UI
    5. Loading Get Handler
    6. Load Order Details Data on UI
    7. Manage Order UI
    8. Manage Order Get Handler and Status Flow
    9. Manage Order Load UI
    10. Toggle Status Display Button
    11. Manage Order Status Update
    12. Manage Order Details Buttons
    13. Refund and Complete Order
    14. Status Buttons in Order List
    15. Order Status Filter
  13. Chapter 13 : Advanced Topics
    1. Sessions in .NET Core
    2. View Components
    3. Send Email Using SMTP
    4. Send Email Demo
    5. Send Grid Emails
    6. Social Login - Facebook
    7. Social Login - Facebook Demo
    8. Make Navigation Secure
    9. Making Registration Secure
  14. Chapter 14 : Azure Deployment
    1. Seed Database
    2. Create SQL Database on Azure and Run Migrations
    3. Azure Deployment

Product information

  • Title: ASP.NET Core Razor Pages - The Complete Guide (.NET 6)
  • Author(s): Bhrugen Patel
  • Release date: June 2022
  • Publisher(s): Packt Publishing
  • ISBN: 9781800568068