Introduction
- Dr Albert Sadowski – University Coding Teacher
- First application – a list of books
- First application – removing items from the list of books
- First application – updating items in the list of books
- First application – adding items to the list of books
Controllers and Endpoints
- Introduction
- GetAll endpoint declaration
- GetItem endpoint declaration
- DeleteItem endpoint declaration
- AddItem endpoint declaration
- UpdateItem endpoint declaration
- GetItemByTitle endpoint declaration
- Endpoints and their parameters – summary
Database and Entity Framework
- Introduction
- Database Context
- Entities and DbSets
- Seeding tables with data
- Database operations – getting specific item
- Database operations – deleting item
- Database operations – adding new item
- Database operations – updating item
- Database operations – getting item by title
- Database operations – creating and managing another controller
Services
- Introduction
- Moving GetAll from controller to service
- Moving GetItem from controller to service
- Moving DeleteItem from controller to service
- Moving AddItem from controller to service
- Moving UpdateItem from controller to service
- Moving GetItemByTitle from controller to service
- Adding services to services collection
SQL Database and Entity Framework
- Installing tools
- Accessing database from Entity Framework
- Migrations
- Database Relations
- Seeding database with initial data
- Subentities
Data Transfer Objects (DTOs) and Mappings
- Exchanging data with use of Data Transfer Objects (DTOs)
- Automapper and mapping profiles
- Mapping data between entities and DTOs
- Mapping data between DTOs and entities
Request Data Validation
- Introduction
- Validation attributes
ASP.NET Application Environment
- Program.cs and Services
- Middleware
- launchSettings and application execution profiles
- Reading configuration from appsettings files