Description
In this course, you will :
- learn everything they need to know about the ASPNET Core 3.1 framework. They'll learn about middleware, model-binding, and sessions.
- learn the critically important topic of developing their own web API with a real SQL database to perform CRUD operations.
- learn the critically important topic of developing their own web API with a real SQL database to perform CRUD operations.
- Hands-on experience with Razor pages and MVC templates
- learn to create the client MVC application within the same Visual Studio solution in order to consume the API created in the previous step.
Syllabus :
1. Create and take a deep dive into your fisrt ASP.NET Core 3.1 Application
- Understanding the New Look Project File
- The Program Class and Host Object
- The Startup Class - How to Configure Services
- The Startup Class - Defining the Middleware Pipeline
- How Razor Pages Generate Response
2. Middleware in ASP.NET Core 3.1
- About Middleware
- Asynchronous Programming through Console Application
- Request Delegate Usage for Inline Middleware
- Create Your Custom Middleware
- Understand the Behavior on Combining Middleware
3. Detailed look into Razor Pages and MVC Application
- Create a ToDo List Razor Pages Application
- Build a Complete MVC ToDo List Application
4. Model Bindingin ASP.NET Core
- Model Binding Introduction
- Integrating Microsoft GitHub Repository Sample Code
5. State Management in ASP.NET Core
- What is State Management of a Web Application ?
- Cookies for State Management
- State Management (Session State)
- Query Strings for State Management
- Hidden Fields for State Management
6. Coding Project Part 1: Build a Web API
- Introduction: Build and Consume a Web API using ASP.NET Core and ADO.NET
- Create a Web API
- Understand the SQL Server Database Tables
- Understand the stored Procedures for Crud Operation
- Create the Customer Model Class
- Create the Order Model Class
- Create the ICustomerRepository Interface
- Create the IOrderRepository Interface
- Edit the appsettings.json File to Include the Connection String
- Error Logging in Web Api Project
- Integrating Serilog for Web API Logging
- Create a Customer Repository
- Completing Customer Repository CRUD Methods
- Create an Order Repository
- Completing Order Repository CRUD Methods
- Registering in Startup Class
- Creating the Home Controller
- Creating the Customer Controller
- Creating the Order Controller
7. Coding Project Part 2: Consume the Web API Using an ASP.NET Core 3.1 MVC Client
- Create an ASP.NET Core MVC Project
- Inspect the wwwroot
- Views Folder - Other Files
- Controllers Folder
- Models Folder
- Create the Customer and Order Classes
- Edit the Layout File
- Configuring the Startup Class
- Modify the Home Controller
- Install Nuget Packages
- Edit Home Controller Index View
- Create the Customer Controller
- Create the Index View (Customer Controller)
- Create the GetCustomer Action Methods
- Create the View to Get Customer By Id
- Add Validation Attributes to Customer Class
- Create AddCustomer Action Methods
- Server Side Validation with AddCustomer View
- Client Side Validation of Customer Model
- Create UpdateCustomer Action Methods
- Create UpdateCustomer View
- Create the DeleteCustomer Action Method
- Create the Order Controller
- Create Index View (Order Controller)
- Create GetOrder View
- Add Validation Attributes to Order Class
- Create AddOrder Action Methods
- Create the AddOrder View
- Testing Validation of Order Form Inputs
- Create UpdateOrder Action Methods
- Create the UpdateOrder View
- Create the DeleteOrder Action Method