Sessions 13-19: In-Depth Explanation
Lecture Topics (Overview):
- Introduction to ASP.NET MVC Core
- Architecture of an ASP.NET MVC application
- Understanding folder structures and configuration files
- Understanding Controllers and Actions
- Creating a controller
- How actions are invoked
HttpGet
, HttpPost
, NoAction
attributes
- Running action results
- Understanding Views & Models
- Creating Models & ViewModels
- Creating Razor Views
- HTML Helper Functions
- Understanding
ViewBag
- Creating a view using
ViewBag
- Validation using Data Annotations
- Client-side and server-side validation
- Self-validated models
- Creating strongly-typed views
- Using various scaffold templates
- CRUD operations using Models
- MVC State Management
ViewBag
, TempData
, Session
, Application
- Cookies, QueryString
- MVC Module
- Partial Views
- Action methods and child actions
- Data Management with ADO.NET
Microsoft.Data.SqlClient
introduction
- Connection object, Command object,
DataReader
, DataAdapter
, DataSet
, and DataTable
- Asynchronous command execution
- Asynchronous connections
- Understanding Routing & Request Life Cycle
- Routing Engine & Routing Table
- Understanding and configuring routing patterns in
RouteConfig
file
- Understanding 404 errors and resource not found
- Using attribute routing
- Understanding request life cycle
- Layouts, Bundling, Minification
- Creating layouts and using with associated views
- Understanding bundling and minification
- Using
BundleConfig
file
- Attaching CSS, JS, Bootstrap in bundles
- Custom helper functions
- Asynchronous actions
- Error handling in MVC with log entry
- Filters and custom action filters
- MVC Security
- Using
Authorize
& AllowAnonymous
attributes
- Implementing forms-based authentication
- Preventing forgery attacks using
AntiForgeryToken
- Preventing Cross-Site Scripting (XSS) attacks
- Entity Framework
- Introduction to EF
- Different approaches (Code First, Database First, Model First)
- Using Code First approach
- Using various Data Annotations
- Using validation, primary key, foreign key, etc.
- Using Fluent APIs
- Database migrations
- CRUD operations using EF
- Developing MVC application using EF Code First approach
- Introduction to Razor Pages
Lab:
- Lab exercises covering the concepts covered in the class.
Lecture: Detailed Explanation
Given the extensive scope, I'll group the topics into logical sections, explain each with examples, and highlight their integration with the Employee
class from Lab 1.